diff --git a/README.md b/README.md index 311b4b1..b49c661 100644 --- a/README.md +++ b/README.md @@ -105,7 +105,7 @@ These instructions will get you a copy of the project and deploy your portfolio - **Fork repo:** Click [here](https://github.com/arifszn/gitprofile/fork) to fork the repo so you have your own project to customize. A "fork" is a copy of a repository. - **Rename repo:** - If you want to host your portfolio at `https://.github.io`, rename your forked repository to `username.github.io` in GitHub, where `username` is your GitHub username (or organization name). - - If you want to host your portfolio at `https://.github.io/` (e.g. `https://.github.io/portfolio`), rename your forked repository to `` (e.g. `portfolio`) in GitHub. + - If you want to host your portfolio at `https://.github.io/` (e.g. `https://.github.io/portfolio`), rename your forked repository to `` (e.g. `portfolio`) in GitHub. - **Enable workflows:** Go to your repo's **Actions** tab and enable workflows. ![Workflows](https://arifszn.github.io/assets/img/hosted/gitprofile/workflows.png) @@ -114,7 +114,7 @@ These instructions will get you a copy of the project and deploy your portfolio - If you are deploying to `https://.github.io`, set `base` to `'/'`. - - If you are deploying to `https://.github.io/` (e.g. `https://.github.io/portfolio`), then set `base` to `'//'` (e.g. `'/portfolio/'`). + - If you are deploying to `https://.github.io/` (e.g. `https://.github.io/portfolio`), then set `base` to `'//'` (e.g. `'/portfolio/'`). ```js // vite.config.js diff --git a/vite.config.js b/vite.config.js index a3c4272..f21cc2b 100644 --- a/vite.config.js +++ b/vite.config.js @@ -7,8 +7,10 @@ import { VitePWA } from 'vite-plugin-pwa'; // https://vitejs.dev/config/ export default defineConfig({ - // If you are deploying to https://.github.io/, set base to '/'. - // If you are deploying to https://.github.io//, for example your repository is at https://github.com//, then set base to '//'. + // If you are deploying to https://.github.io/, for example your repository is at https://github.com/, set base to '/'. + + // If you are deploying to https://.github.io//, for example your repository is at https://github.com//, then set base to '//'. + base: '/gitprofile/', plugins: [ react(),