mirror of
https://github.com/supabase/supabase.git
synced 2026-12-04 15:39:13 +00:00
Removes the dead Cloudflare R2 asset upload and asset CDN code from Studio, docs and www. Every app now behaves as it did with `FORCE_ASSET_CDN=-1`: Vercel serves assets from the default path. Also fixes `.github/workflows/zizmor.yml` to download zizmor with `gh release download`: `curl -sSLO` saved GitHub error pages as the archive, which broke the attestation check. > [!WARNING] > Remove `FORCE_ASSET_CDN` from Vercel only after this deploys. **Worth a close look** - `apps/studio/vite.config.ts`: `SKIP_ASSET_UPLOAD` is kept because it still gates Sentry source map upload. - `apps/studio/turbo.jsonc`: `AWS_ACCESS_KEY_ID` / `AWS_SECRET_ACCESS_KEY` are kept because the Bedrock credential chain (`lib/ai/bedrock.ts`) can fall back to them. ## To test - [ ] On the Vercel previews for studio, docs and www, open a page with DevTools: JS, CSS and fonts load from the app's own origin (`/dashboard/assets/…` or `/dashboard/_vercel/immutable/…` for Studio, `/docs/_next/static/…` for docs, `/_next/static/…` for www), with no 404s or CSP errors in the console. --------- Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
16 lines
590 B
TypeScript
16 lines
590 B
TypeScript
// wrapFetchWithSentry only adds a span, trace meta tags, and a flush. errors
|
|
// are captured in start.ts, because only the sentry middleware sees handler throws.
|
|
import './instrument.server.mjs'
|
|
|
|
import { wrapFetchWithSentry } from '@sentry/tanstackstart-react'
|
|
import handler, { createServerEntry, type ServerEntry } from '@tanstack/react-start/server-entry'
|
|
|
|
const requestHandler: ServerEntry = wrapFetchWithSentry({
|
|
fetch(request: Request) {
|
|
return handler.fetch(request)
|
|
},
|
|
})
|
|
|
|
// eslint-disable-next-line no-restricted-exports
|
|
export default createServerEntry(requestHandler)
|