Add handling for trailing slash in activity URL path
Add a rewrite rule to `vercel.json` to handle requests to `/activity/` by serving `index.html`, addressing a 404 error caused by Discord's proxy adding a trailing slash to URLs with paths. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 9203795e-937a-4306-b81d-b4d5c78c240e Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: 9dcb4076-db34-480c-afff-e026dc69817c Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7c94b7a0-29c7-4f2e-94ef-44b2153872b7/9203795e-937a-4306-b81d-b4d5c78c240e/qPXTzuE Replit-Helium-Checkpoint-Created: true
This commit is contained in:
parent
646b221fe0
commit
d49bc85393
2 changed files with 1 additions and 0 deletions
BIN
attached_assets/image_1765214324775.png
Normal file
BIN
attached_assets/image_1765214324775.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 13 KiB |
|
|
@ -85,6 +85,7 @@
|
||||||
{ "source": "/profile", "destination": "/index.html" },
|
{ "source": "/profile", "destination": "/index.html" },
|
||||||
{ "source": "/profile/:path*", "destination": "/index.html" },
|
{ "source": "/profile/:path*", "destination": "/index.html" },
|
||||||
{ "source": "/activity", "destination": "/index.html" },
|
{ "source": "/activity", "destination": "/index.html" },
|
||||||
|
{ "source": "/activity/", "destination": "/index.html" },
|
||||||
{ "source": "/activity/:path*", "destination": "/index.html" },
|
{ "source": "/activity/:path*", "destination": "/index.html" },
|
||||||
{ "source": "/admin", "destination": "/index.html" },
|
{ "source": "/admin", "destination": "/index.html" },
|
||||||
{ "source": "/admin/:path*", "destination": "/index.html" },
|
{ "source": "/admin/:path*", "destination": "/index.html" },
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue