Files
supabase/apps/www/package.json
T
Ivan VasilovandClaude Sonnet 5.5 ced4ff82a4 feat(www): upgrade to Next.js 16 (#52001)
## Problem

The marketing site (`apps/www`) is still on Next.js 15. Resolves
FE-4673.

## Solution

Upgrades `apps/www` to Next.js 16.3.6 (`next` now uses the workspace
catalog; `@next/mdx` and `@next/bundle-analyzer` are bumped to match).
Fixes for breaking changes: `middleware.ts` renamed to `proxy.ts`,
removed the `eslint` key from `next.config.mjs`, moved Sentry options
under `webpack`, and added `images.localPatterns` and
`images.qualities`. `dev` and `build:next` now run with `--webpack`,
because the MDX remark plugins have non-serializable options and
`esmExternals: 'loose'` is ignored by Turbopack.

## Review instructions

1. Run `pnpm --filter=www typecheck` and `pnpm --filter=www test`.
2. Run `pnpm dev:www` and open `/pricing` and `/blog/vector-buckets`;
both should render, including images.
3. Check the Vercel preview build. Locally, `next build` needed
`NODE_OPTIONS=--max-old-space-size=8192`, so confirm memory is
sufficient. `proxy.ts` now runs on the Node.js runtime instead of edge.

## Checklist

Check all before review:

- [ ] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [ ] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-21 12:28:35 +02:00

140 lines
4.8 KiB
JSON

{
"name": "www",
"version": "0.0.3",
"description": "Supabase main website",
"private": true,
"scripts": {
"preinstall": "npx only-allow pnpm",
"dev": "pnpm run content:build:core && next dev --webpack --port 3000",
"prebuild": "pnpm --filter=docs run build:federated-content && pnpm --filter=docs run build:guides-markdown && pnpm run content:build",
"build": "turbo run build:next --filter=www",
"build:next": "next build --webpack && node ./internals/generate-sitemap.mjs",
"export": "next export",
"start": "next start",
"lint": "eslint .",
"lint:ratchet": "tsx node_modules/eslint-config-supabase/ratchet-eslint-rules.ts --rules-file node_modules/eslint-config-supabase/ratchet-rules.json",
"clean": "rimraf .next .turbo tsconfig.tsbuildinfo",
"pretypecheck": "next typegen",
"typecheck": "pnpm run content:build:core && tsc --noEmit",
"content:build:core": "node scripts/generateStaticContent.mjs && node scripts/generateMdContent.mjs",
"content:build": "pnpm run content:build:core && node scripts/fetchAgentSkills.mjs",
"sync:partner-form": "node scripts/syncPartnerIntakeForm.mjs",
"test": "vitest --run",
"test:watch": "vitest watch",
"test:partner-form-sync": "vitest run --config vitest.sync.config.ts",
"postbuild": "./../../scripts/upload-static-assets.sh"
},
"dependencies": {
"@bsmnt/scrollytelling": "^0.3.3",
"@code-hike/mdx": "^0.9.0",
"@codesandbox/sandpack-react": "^2.20.0",
"@hcaptcha/react-hcaptcha": "^1.12.0",
"@heroicons/react": "^1.0.6",
"@mdx-js/mdx": "^3.0.1",
"@mdx-js/react": "^3.0.0",
"@next/bundle-analyzer": "16.3.6",
"@next/mdx": "16.3.6",
"@octokit/auth-app": "^7.0.0",
"@octokit/core": "^6.0.0",
"@octokit/graphql": "^8.0.0",
"@octokit/plugin-paginate-graphql": "^4.0.0",
"@octokit/rest": "^21.0.0",
"@sentry/nextjs": "catalog:",
"@supabase/ssr": "catalog:",
"@supabase/supabase-js": "catalog:",
"@typescript/native": "catalog:",
"@vercel/og": "^0.6.2",
"ai-commands": "workspace:*",
"animejs": "^4.0.2",
"class-variance-authority": "^0.7.1",
"classnames": "^2.3.1",
"cobe": "^0.6.5",
"common": "workspace:*",
"common-tags": "^1.8.2",
"config": "workspace:*",
"d3-geo": "^3.1.1",
"dayjs": "^1.11.12",
"dev-tools": "workspace:*",
"eslint-config-supabase": "workspace:*",
"globby": "^13.2.2",
"gray-matter": "^4.0.3",
"gsap": "^3.13.0",
"icons": "workspace:*",
"js-yaml": "^3.15.1",
"lucide-react": "catalog:",
"markdown-toc": "^1.2.0",
"marketing": "workspace:*",
"mdast-util-from-markdown": "^2.0.2",
"mdast-util-gfm": "^2.0.2",
"mdast-util-mdx": "^2.0.1",
"mdast-util-mdx-jsx": "^2.1.4",
"mdast-util-to-markdown": "^1.5.0",
"micromark-extension-gfm": "^2.0.3",
"micromark-extension-mdxjs": "^1.0.1",
"motion": "catalog:",
"next": "catalog:",
"next-mdx-remote-client": "^1.1.7",
"next-seo": "^6.5.0",
"next-themes": "catalog:",
"nuqs": "^2.8.1",
"ogl": "^1.0.11",
"openai": "^4.75.1",
"parse-numeric-range": "^1.3.0",
"radix-ui": "catalog:",
"react": "catalog:",
"react-copy-to-clipboard": "^5.1.0",
"react-countdown": "^2.3.5",
"react-dom": "catalog:",
"react-markdown": "^10.1.0",
"react-simple-maps": "4.0.0-beta.6",
"react-syntax-highlighter": "^15.6.6",
"react-transition-group": "^4.4.1",
"react-use": "^17.4.0",
"recharts": "catalog:",
"rehype-slug": "^5.1.0",
"remark": "^15.0.1",
"remark-gfm": "^4.0.1",
"shared-data": "workspace:*",
"shiki": "catalog:",
"swiper": "^12.1.2",
"typed.js": "^2.0.16",
"typescript": "catalog:",
"ui": "workspace:*",
"ui-patterns": "workspace:*",
"unicornstudio-react": "2.0.1-1",
"use-debounce": "^7.0.1",
"vanilla-tilt": "1.7.0"
},
"devDependencies": {
"@babel/core": "*",
"@hookform/resolvers": "^3.1.1",
"@types/animejs": "^3.1.12",
"@types/classnames": "^2.3.1",
"@types/common-tags": "^1.8.4",
"@types/d3-geo": "^3.1.0",
"@types/mdast": "^4.0.4",
"@types/mdx-js__react": "^1.5.6",
"@types/parse-numeric-range": "^0.0.1",
"@types/react": "catalog:",
"@types/react-copy-to-clipboard": "^5.0.4",
"@types/react-dom": "catalog:",
"@types/react-simple-maps": "^3.0.1",
"@types/react-syntax-highlighter": "^15.5.13",
"@types/three": "^0.169.0",
"api-types": "workspace:*",
"postcss": "catalog:",
"react-hook-form": "^7.71.2",
"remark-mdx": "^3.0.1",
"tailwindcss": "catalog:",
"tar-stream": "^3.1.7",
"tsconfig": "workspace:*",
"unist-util-visit": "^5.1.0",
"unist-util-visit-parents": "5.1.3",
"uuid": "^14.0.0",
"vite": "catalog:",
"vitest": "catalog:",
"zod": "catalog:"
},
"license": "MIT"
}