SIMDE-ULL / SIMDE

Educational computer simulator on a mission to "superscalate" the study of computer architecture fundamentals
https://simde.net
GNU General Public License v3.0
13 stars 11 forks source link

fix: add VITE_CONFIG_BASE env var to set BASE in vite.config.ts #138

Closed oxcabe closed 7 months ago

oxcabe commented 7 months ago

This simple change allows to easily deploy to GitHub Pages with the required /SIMDE/ base URL path while still using the default / route for the rest of deployments, including development environments.

In the future, when build configurations increase in complexity, this approach could be replaced in favor of more specific configs that extend the base vite.config.ts file, e.g. github-pages.config.ts inside a deploy/vite dir.