Files
supabase/apps/studio/compat/next/script.tsx
T
Alaister Young 339316c721 chore(studio): port global error boundary to TanStack root + next compat shims
- Wire ErrorBoundary + Sentry-aware handler into routes/__root.tsx to
  mirror pages/_app.tsx; switch the handler's Sentry import to
  framework-agnostic @sentry/react.
- Add apps/studio/compat/next/ shims (link, router, head, navigation,
  image, script, compat/router) that proxy to TanStack Router
  equivalents. Shims implement only the surface used today; expand as
  new usage appears.
- Combine shim aliasing and a build-time guard into a single Vite
  plugin (nextCompat): resolves shimmed next/* ids to local files, and
  fails the build on any unshimmed next/* import from workspace source
  so we catch regressions during the migration.
- ssr.noExternal lodash to fix CJS named-export interop during
  prerender.
2026-04-21 15:43:14 +08:00

10 lines
310 B
TypeScript

import type { ComponentPropsWithoutRef } from 'react'
type ScriptProps = ComponentPropsWithoutRef<'script'> & {
strategy?: 'beforeInteractive' | 'afterInteractive' | 'lazyOnload' | 'worker'
}
export default function Script({ strategy: _strategy, ...props }: ScriptProps) {
return <script {...props} />
}