mirror of
https://github.com/supabase/supabase.git
synced 2026-10-11 04:15:04 +03:00
- 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.
10 lines
310 B
TypeScript
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} />
|
|
}
|