mirror of
https://github.com/supabase/supabase.git
synced 2026-10-09 19:35:06 +03:00
Keep the base-path-prefixed rewrites for assets and routes that Vite already baked the prefix into, but also emit root-level rewrites so bare-domain hits (including /) resolve to the shell instead of Vercel's default 404.
6 lines
251 B
JavaScript
6 lines
251 B
JavaScript
// @ts-ignore - built at `vite build` time, not present in source
|
|
import handler from '../dist/server/server.js'
|
|
|
|
// eslint-disable-next-line import/no-anonymous-default-export, no-restricted-exports
|
|
export default (request) => handler.fetch(request)
|