commits
anything else is lowk stupid lmfao
like you can set whatever mime type you want why would you not do that
Might make 404 redirect to sans / if it cant find a route tho and then falling back to 404
this makes no trailing slash the sane default but allows opt in trailing slash for certain urls
TODO:
- security headers for proper origin sandboxing
(users could store sensitive info + general namespace collisions bad)
- backfill and cdn to take load off of the main appview
this will populate a database which the appview does reads from
and will download any referenced routes (to a certain size per user)
and gc old routes
im stupid and didnt clock that route.ts was because my nsid ended in .route
- uses HOSTNAME env var for root domain, falling back to locahost
- uses PORT env var for port, falling back to 8000 (as non privileged)
- extracts subdomain from url and WILL match it, but not currently
- Returns "404 could not resolve domain" if not matched
TODO:
- security headers for proper origin sandboxing
(users could store sensitive info + general namespace collisions bad)
- backfill and cdn to take load off of the main appview
this will populate a database which the appview does reads from
and will download any referenced routes (to a certain size per user)
and gc old routes