Skip to content

Use custom ASGI app to serve SPA properly#85

Open
scootermon wants to merge 1 commit into
danyi1212:mainfrom
inomotech-foss:main
Open

Use custom ASGI app to serve SPA properly#85
scootermon wants to merge 1 commit into
danyi1212:mainfrom
inomotech-foss:main

Conversation

@scootermon

Copy link
Copy Markdown

Sharing links is completely broken right now because the frontend is only served on /.
This PR implements a custom ASGI app on top of the static app that will properly serve the SPA for unknown links.
I added the ignore_prefixes list so you still get proper 404 pages for non-frontend links like /api/thisDoesNotExist

@vercel

vercel Bot commented Mar 10, 2025

Copy link
Copy Markdown

@scootermon is attempting to deploy a commit to the danyi1212's projects Team on Vercel.

A member of the Team first needs to authorize it.

@scootermon scootermon force-pushed the main branch 2 times, most recently from d7c2584 to 64c4cc7 Compare March 11, 2025 19:01
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.

1 participant