You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When building the React boilerplate app using Vite, it assumes the baseUrl to be the root directory, making it challenging to have a flexible base dir configuration (e.g., for GitHub Pages with https://<USERNAME>.github.io/<REPO>/). I want to make it adaptable to any directory.
Context
When attempting to build and deploy to GitHub Pages, I encountered an issue where the base URL was set to https://<USERNAME>.github.io/<REPO>/, resulting in the failure to render the application on the page. 😢
ptrkdan
changed the title
Flexible base directory configuration in React boilerplate
[FEATURE] Flexible base directory configuration in React boilerplate
Dec 19, 2023
Description
When building the React boilerplate app using Vite, it assumes the baseUrl to be the root directory, making it challenging to have a flexible base dir configuration (e.g., for GitHub Pages with
https://<USERNAME>.github.io/<REPO>/
). I want to make it adaptable to any directory.Context
When attempting to build and deploy to GitHub Pages, I encountered an issue where the base URL was set to
https://<USERNAME>.github.io/<REPO>/
, resulting in the failure to render the application on the page. 😢Possible Implementation
Footnotes
https://vitejs.dev/guide/static-deploy.html#github-pages ↩
The text was updated successfully, but these errors were encountered: