Files
supabase/apps/studio/api/server.js
T
Alaister Young 9ee354ee65 feat(studio): serve SPA shell on unprefixed paths too
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.
2026-04-22 01:58:52 +08:00

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)