mirror of
https://github.com/supabase/supabase.git
synced 2026-12-04 07:29:16 +00:00
Removes the Next-only entry files and config now that every page lives in `routes/**` (FE-3106). `routes/__root.tsx` already mirrors `pages/_app.tsx` (dayjs plugins, providers, telemetry, error boundary, favicons). Part 13 of the stack. **Depends on:** #53221 **Changed:** - `components/interfaces/App/{NotFoundPage,ServerErrorPage}.tsx` – the 404/500 pages, rendered by `__root.tsx`, now with native `Link`/`useNavigate` and `<img>` - `routes/api/{status-page,scoped-access-token-permissions}.ts` – App Router handlers from `app/api/**` moved in (`NextResponse.json` → `Response.json`); `buildAPIPermissionScopeMap` moves to `lib/api/` - `package.json`, `tsconfig.json` – no `next typegen` step or `.next/types` include - `packages/ui-patterns/.../InstructionBlocks.tsx` – asset map typed `StaticImageData | string`: under Vite a png import is a URL string, which Next's global image types used to hide - `vite.config.ts`, `knip.jsonc`, `turbo.jsonc` and comments across studio – Next build references removed **Removed:** - `pages/{_app,_document,404,500}.tsx`, `pages/_error.jsx`, `pages/README.md`, `app/**`, `next.config.ts`, `proxy.ts`, `instrumentation{,-client}.ts`, `sentry.{server,edge}.config.ts`, `fonts/index.ts` (next/font), `BootTimeoutFallback`, `postcss.config.cjs`, the `next/server` shim - `@next/bundle-analyzer`, `raw-loader`, `postcss`, `@tailwindcss/postcss` dev dependencies Addresses [FE-3106](https://linear.app/supabase/issue/FE-3106/move-page-bodies-into-route-files-and-delete-pages). ## To test - Open an unknown URL – the 404 page renders with working "Head back" - `/api/status-page` and `/api/scoped-access-token-permissions` on platform – same JSON and `Cache-Control` - Fonts (Inter, Manrope, Source Code Pro) still load --------- Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
76 lines
2.5 KiB
CSS
76 lines
2.5 KiB
CSS
/*
|
||
* Font setup. The CSS var names MUST match what the theme/Tailwind consume:
|
||
* --font-sans -> body (Inter) [theme.css: --font-sans]
|
||
* --font-heading -> headings (Manrope) [globals.css @theme inline]
|
||
* --font-source-code-pro -> mono (Source Code Pro)
|
||
*
|
||
* All three families are vendored under fonts/ so nothing depends on the
|
||
* Google Fonts CDN at runtime — important for self-hosted / offline studio.
|
||
* Weight ranges: Inter 100–900, Source Code Pro 200–900, Manrope 200–800
|
||
* (Manrope has no italic).
|
||
*/
|
||
|
||
/* Inter — body (--font-sans) */
|
||
@font-face {
|
||
font-family: 'Inter';
|
||
src: url('../fonts/inter/InterVariable.woff2') format('woff2');
|
||
font-weight: 100 900;
|
||
font-style: normal;
|
||
font-display: swap;
|
||
}
|
||
|
||
@font-face {
|
||
font-family: 'Inter';
|
||
src: url('../fonts/inter/InterVariable-Italic.woff2') format('woff2');
|
||
font-weight: 100 900;
|
||
font-style: italic;
|
||
font-display: swap;
|
||
}
|
||
|
||
/* Manrope — headings (--font-heading). Latin + Latin-ext subsets, standard
|
||
* Google Fonts unicode-ranges. No italic axis. */
|
||
@font-face {
|
||
font-family: Manrope;
|
||
src: url('../fonts/manrope/manrope-latin-wght-normal.woff2') format('woff2');
|
||
font-weight: 200 800;
|
||
font-style: normal;
|
||
font-display: swap;
|
||
unicode-range:
|
||
U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
|
||
U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||
}
|
||
|
||
@font-face {
|
||
font-family: Manrope;
|
||
src: url('../fonts/manrope/manrope-latin-ext-wght-normal.woff2') format('woff2');
|
||
font-weight: 200 800;
|
||
font-style: normal;
|
||
font-display: swap;
|
||
unicode-range:
|
||
U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
|
||
U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||
}
|
||
|
||
/* Source Code Pro — mono (--font-source-code-pro) */
|
||
@font-face {
|
||
font-family: 'Source Code Pro';
|
||
src: url('../fonts/source-code-pro/SourceCodePro-Variable.woff2') format('woff2');
|
||
font-weight: 200 900;
|
||
font-style: normal;
|
||
font-display: swap;
|
||
}
|
||
|
||
@font-face {
|
||
font-family: 'Source Code Pro';
|
||
src: url('../fonts/source-code-pro/SourceCodePro-Variable-Italic.woff2') format('woff2');
|
||
font-weight: 200 900;
|
||
font-style: italic;
|
||
font-display: swap;
|
||
}
|
||
|
||
:root {
|
||
--font-sans: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||
--font-heading: 'Manrope', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||
--font-source-code-pro: 'Source Code Pro', 'Office Code Pro', Menlo, monospace;
|
||
}
|