Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Oct 31, 2025

GitHub Pages serves at /Code-ReViewer/ but Vite was building assets with root paths (/assets/*), causing 404s and a blank screen.

Changes

  • Added base: '/Code-ReViewer/' to vite.config.ts to prefix all asset paths with the repository name
export default defineConfig({
  base: '/Code-ReViewer/',
  resolve: {
    alias: {
      '@': path.resolve(__dirname, '.'),
    }
  }
});

This ensures the built HTML references /Code-ReViewer/assets/index-*.js instead of /assets/index-*.js.

Original prompt

the deplayment to https://gizzzmo.github.io/Code-ReViewer/ is just a blank screen


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Fix blank screen issue on Code-ReViewer deployment Fix GitHub Pages deployment with correct base path Oct 31, 2025
Copilot AI requested a review from GizzZmo October 31, 2025 17:53
@GizzZmo GizzZmo marked this pull request as ready for review October 31, 2025 17:59
Copilot AI review requested due to automatic review settings October 31, 2025 17:59
@GizzZmo GizzZmo merged commit 7a73ac7 into main Oct 31, 2025
25 checks passed
@GizzZmo GizzZmo deleted the copilot/fix-blank-screen-issue branch October 31, 2025 18:00
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR configures the base path for the Vite application to support deployment to a subdirectory.

  • Sets the base configuration option to /Code-ReViewer/ for proper asset path resolution

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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