refactor(website,guide): cloudflare workers support (#11204)

This commit is contained in:
Noel
2025-10-25 02:17:59 +02:00
committed by GitHub
parent 756eac6bb1
commit 08b87d9087
62 changed files with 5143 additions and 1709 deletions

View File

@@ -5,11 +5,15 @@
"description": "Imagine a bot... the most popular way to build discord bots",
"private": true,
"scripts": {
"cf-typegen": "wrangler types --env-interface CloudflareEnv cloudflare-env.d.ts",
"build:check": "tsc --noEmit",
"build:local": "cross-env NEXT_PUBLIC_LOCAL_DEV=true pnpm run build:prod",
"build:prod": "pnpm run build:next",
"build:next": "next build",
"build": "next build --webpack",
"preview": "next start",
"preview:cf": "opennextjs-cloudflare build && opennextjs-cloudflare preview",
"deploy:cf": "opennextjs-cloudflare build && opennextjs-cloudflare deploy",
"dev": "next dev -p 3001 --turbopack",
"lint": "pnpm run build:check && prettier --check . && cross-env TIMING=1 eslint --format=pretty src ",
"format": "pnpm run build:check && prettier --write . && cross-env TIMING=1 eslint --fix --format=pretty src ",
@@ -44,30 +48,32 @@
"homepage": "https://discord.js.org",
"funding": "https://github.com/discordjs/discord.js?sponsor",
"dependencies": {
"@opennextjs/cloudflare": "^1.11.0",
"@react-icons/all-files": "^4.1.0",
"@vercel/analytics": "^1.5.0",
"cmdk": "^1.1.1",
"cva": "1.0.0-beta.3",
"fumadocs-core": "^15.8.4",
"fumadocs-mdx": "^12.0.3",
"fumadocs-twoslash": "^3.1.8",
"fumadocs-ui": "^15.8.4",
"fumadocs-core": "^16.0.2",
"fumadocs-mdx": "^13.0.0",
"fumadocs-twoslash": "^3.1.9",
"fumadocs-ui": "^16.0.2",
"geist": "^1.5.1",
"immer": "^10.1.3",
"jotai": "^2.15.0",
"jotai-immer": "^0.4.1",
"lucide-react": "^0.545.0",
"lucide-react": "^0.548.0",
"mermaid": "^11.12.0",
"motion": "^12.23.22",
"next": "15.6.0-canary.45",
"next-mdx-remote-client": "^2.1.6",
"motion": "^12.23.24",
"next": "^16.0.0",
"next-mdx-remote-client": "^2.1.7",
"next-themes": "^0.4.6",
"nuqs": "^2.7.1",
"nuqs": "^2.7.2",
"react": "^19.2.0",
"react-aria": "^3.44.0",
"react-aria-components": "^1.13.0",
"react-dom": "^19.2.0",
"react-error-boundary": "^6.0.0",
"safe-mdx": "^1.3.8",
"sharp": "^0.34.4",
"tailwind-merge": "^3.3.1",
"tw-animate-css": "^1.4.0",
@@ -75,15 +81,15 @@
"usehooks-ts": "^3.1.1"
},
"devDependencies": {
"@next/env": "^15.5.4",
"@next/env": "^16.0.0",
"@shikijs/rehype": "^3.13.0",
"@tailwindcss/postcss": "^4.1.14",
"@tailwindcss/postcss": "^4.1.16",
"@tailwindcss/typography": "^0.5.19",
"@tailwindcss/vite": "^4.1.14",
"@tailwindcss/vite": "^4.1.16",
"@types/mdx": "^2.0.13",
"@types/node": "^22.18.8",
"@types/react": "^19.2.0",
"@types/react-dom": "^19.2.0",
"@types/node": "^24.9.1",
"@types/react": "^19.2.2",
"@types/react-dom": "^19.2.2",
"autoprefixer": "^10.4.21",
"babel-plugin-react-compiler": "19.1.0-rc.3",
"cpy-cli": "^6.0.0",
@@ -94,15 +100,16 @@
"git-describe": "^4.1.1",
"postcss": "^8.5.6",
"prettier": "^3.6.2",
"prettier-plugin-tailwindcss": "^0.6.14",
"prettier-plugin-tailwindcss": "^0.7.1",
"remark-gfm": "^4.0.1",
"remark-rehype": "^11.1.2",
"shiki": "^3.13.0",
"tailwindcss": "^4.1.14",
"tailwindcss": "^4.1.16",
"tailwindcss-react-aria-components": "^2.0.1",
"turbo": "^2.5.8",
"typescript": "^5.9.3",
"vercel": "^48.2.1"
"vercel": "^48.2.1",
"wrangler": "^4.45.0"
},
"engines": {
"node": ">=22.12.0"