Skip to content

Configure baseURL for GitHub Pages deployment#15

Closed
Copilot wants to merge 2 commits into
mainfrom
copilot/fix-github-pages-deployment
Closed

Configure baseURL for GitHub Pages deployment#15
Copilot wants to merge 2 commits into
mainfrom
copilot/fix-github-pages-deployment

Conversation

Copilot AI commented Feb 4, 2026

Copy link
Copy Markdown
Contributor

GitHub Pages serves the app at kehwar.github.io/wallet/ but assets were requested from root, causing 404s.

Changes

  • nuxt.config.ts: Set app.baseURL: '/wallet/' to prefix all asset paths
  • PWA manifest: Changed start_url from / to ./ for relative resolution
  • Service worker: Updated navigateFallback to /wallet/ for correct routing

Result

Generated assets now reference correct paths:

<!-- Before -->
<link href="/_nuxt/entry.Bniov9FE.css">

<!-- After -->
<link href="/wallet/_nuxt/entry.Bniov9FE.css">
Original prompt

Deploy action to github pages results ok

But on opening the site I get

wallet/:1 GET https://kehwar.github.io/_nuxt/entry.Bniov9FE.css net::ERR_ABORTED 404 (Not Found)
wallet/:1 GET https://kehwar.github.io/_nuxt/CleRJAhL.js net::ERR_ABORTED 404 (Not Found)
favicon.ico:1 GET https://kehwar.github.io/favicon.ico 404 (Not Found)

and a blank page


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: kehwar <45218102+kehwar@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix 404 errors on GitHub Pages site Configure baseURL for GitHub Pages deployment Feb 4, 2026
Copilot AI requested a review from kehwar February 4, 2026 22:02
@kehwar kehwar closed this Feb 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants