Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions frontend/vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"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.
}
]
Comment on lines +2 to +7

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.
}
Loading