The GitHub Actions failure happened because the repository ignored .env.* files, so the runner did not receive VITE_BASE_PATH=/ads/ and other VITE_* values. Vite then left %VITE_BASE_PATH% placeholders unresolved and generated app assets without the /ads/ project-site prefix.
This version fixes it in two ways:
scripts/run-vite-target.mjsinjects target variables directly before running Vite..gitignorenow allows the public deploy env files to be tracked.
Required URLs:
- Localhost:
http://127.0.0.1:5177/andhttp://127.0.0.1:5177/app/ - Cloudflare Pages:
https://powerflow.pages.dev/andhttps://powerflow.pages.dev/app/ - GitHub Pages:
https://masarray.github.io/ads/andhttps://masarray.github.io/ads/app/
Do not use https://masarray.github.io/app/ for this repository. GitHub project sites require the repository path /ads/.