Skip to content

feat: Add Vercel configuration for URL rewrites#3

Merged
KD2303 merged 1 commit into
mainfrom
master
Mar 19, 2026
Merged

feat: Add Vercel configuration for URL rewrites#3
KD2303 merged 1 commit into
mainfrom
master

Conversation

@KD2303

@KD2303 KD2303 commented Mar 19, 2026

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings March 19, 2026 20:31
@vercel

vercel Bot commented Mar 19, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
skillflare Ready Ready Preview, Comment Mar 20, 2026 8:54am

@KD2303 KD2303 merged commit 1550f4c into main Mar 19, 2026
5 of 9 checks passed
@KD2303 KD2303 deleted the master branch March 19, 2026 20:32

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds a Vercel configuration to support client-side routing by rewriting incoming URLs to the frontend entrypoint.

Changes:

  • Introduce frontend/vercel.json with a catch-all rewrite rule for SPA navigation.

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

Comment thread frontend/vercel.json
Comment on lines +2 to +7
"rewrites": [
{
"source": "/(.*)",
"destination": "/"
}
]

Copilot AI Mar 19, 2026

Copy link

Choose a reason for hiding this comment

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

The JSON formatting here is inconsistent with the rest of the repo’s JSON files (e.g., package.json uses 2-space indentation). Reformatting vercel.json with standard indentation will improve readability and reduce diff noise in future changes.

Suggested change
"rewrites": [
{
"source": "/(.*)",
"destination": "/"
}
]
"rewrites": [
{
"source": "/(.*)",
"destination": "/"
}
]

Copilot uses AI. Check for mistakes.
Comment thread frontend/vercel.json
"rewrites": [
{
"source": "/(.*)",
"destination": "/"

Copilot AI Mar 19, 2026

Copy link

Choose a reason for hiding this comment

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

For an SPA fallback on Vercel, it’s typically safer/more explicit to rewrite unmatched routes to the actual entry file (e.g., /index.html) rather than "/", which relies on implicit index resolution. Consider changing the destination to the built entrypoint to avoid unexpected behavior if the hosting defaults change.

Suggested change
"destination": "/"
"destination": "/index.html"

Copilot uses AI. Check for mistakes.
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