mirror of
https://github.com/supabase/supabase.git
synced 2026-05-06 22:18:00 +08:00
## Problem We want to upgrade to react 19. However some libraries aren't compatible with it. Besides, `next-mdx-remote` is now archived and not maintained anymore. ## Solution The [NextJS documentation)[https://nextjs.org/docs/15/app/guides/mdx#remote-mdx] suggest using [`next-mdx-remote-client`](https://github.com/ipikuka/next-mdx-remote-client) which was a fork of `next-mdx-remote`. - [x] migrate `apps/www` from `next-mdx-remote` to `next-mdx-remote-client` - [x] migrate `apps/www` from `next-mdx-remote` to `next-mdx-remote-client` I haven't noticed any change in the pages. When upgrading to react 19, we'll have to use v2 of `next-mdx-remote-client`. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Refactor** * Switched MDX rendering/serialization to a newer client-focused implementation across docs and site for improved compatibility. * **Bug Fixes** * Improved handling of serialization errors so MDX failures render clear fallback messages instead of breaking pages. * **Chores** * Updated local environment template value for the public anonymous key. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
126 lines
3.9 KiB
JSON
126 lines
3.9 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 && next --port 3000",
|
|
"build": "pnpm run content:build && next build",
|
|
"export": "next export",
|
|
"start": "next start",
|
|
"lint": "eslint .",
|
|
"clean": "rimraf node_modules",
|
|
"pretypecheck": "next typegen",
|
|
"typecheck": "pnpm run content:build && tsc --noEmit",
|
|
"content:build": "node scripts/generateStaticContent.mjs && node scripts/generateMdContent.mjs",
|
|
"test": "vitest --run",
|
|
"test:watch": "vitest watch",
|
|
"postbuild": "node ./internals/generate-sitemap.mjs && ./../../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": "15.3.1",
|
|
"@next/mdx": "15.3.1",
|
|
"@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:",
|
|
"@vercel/og": "^0.6.2",
|
|
"ai-commands": "workspace:*",
|
|
"animejs": "^4.0.2",
|
|
"class-variance-authority": "^0.7.1",
|
|
"classnames": "^2.3.1",
|
|
"clsx": "^2.1.1",
|
|
"cobe": "^0.6.5",
|
|
"common": "workspace:*",
|
|
"common-tags": "^1.8.2",
|
|
"config": "workspace:*",
|
|
"dayjs": "^1.11.12",
|
|
"dev-tools": "workspace:*",
|
|
"eslint-config-supabase": "workspace:*",
|
|
"framer-motion": "^11.18.2",
|
|
"globby": "^13.2.2",
|
|
"gray-matter": "^4.0.3",
|
|
"gsap": "^3.13.0",
|
|
"icons": "workspace:*",
|
|
"lucide-react": "*",
|
|
"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",
|
|
"next": "^15.5.15",
|
|
"next-mdx-remote-client": "^1.1.7",
|
|
"next-seo": "^6.5.0",
|
|
"next-themes": "catalog:",
|
|
"nuqs": "^2.8.1",
|
|
"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-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:*",
|
|
"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/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-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:",
|
|
"tsconfig": "workspace:*",
|
|
"unist-util-visit": "^5.1.0",
|
|
"unist-util-visit-parents": "5.1.3",
|
|
"uuid": "^14.0.0",
|
|
"vite-tsconfig-paths": "catalog:",
|
|
"vitest": "catalog:",
|
|
"zod": "catalog:"
|
|
},
|
|
"license": "MIT"
|
|
}
|