- Update prisma.ts to use getPrismaWithD1() with getCloudflareContext() - Update all API routes to use async D1 connection - Add open-next.config.ts for Cloudflare Workers deployment - Add wrangler.jsonc with D1 binding and custom domain routes - Fix TypeScript type errors in API routes and storage - Add @workos-inc/authkit-nextjs dependency - Remove incompatible prisma.config.ts
64 lines
1.8 KiB
JSON
64 lines
1.8 KiB
JSON
{
|
|
"name": "quit_smoking_website",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "next dev",
|
|
"build": "prisma generate && next build",
|
|
"start": "next start",
|
|
"lint": "eslint",
|
|
"postinstall": "prisma generate",
|
|
"build:worker": "opennextjs-cloudflare build",
|
|
"dev:worker": "wrangler dev",
|
|
"deploy": "bun run build:worker && wrangler deploy",
|
|
"d1:migrate": "wrangler d1 migrations apply quit-smoking-db --local",
|
|
"d1:migrate:prod": "wrangler d1 migrations apply quit-smoking-db --remote"
|
|
},
|
|
"dependencies": {
|
|
"@opennextjs/cloudflare": "^1.1.1",
|
|
"@prisma/adapter-d1": "^5.22.0",
|
|
"@prisma/client": "5",
|
|
"@workos-inc/authkit-nextjs": "^0.16.0",
|
|
"@radix-ui/react-avatar": "^1.1.11",
|
|
"@radix-ui/react-checkbox": "^1.3.3",
|
|
"@radix-ui/react-dialog": "^1.1.15",
|
|
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
"@radix-ui/react-label": "^2.1.8",
|
|
"@radix-ui/react-select": "^2.2.6",
|
|
"@radix-ui/react-slot": "^1.2.4",
|
|
"@workos-inc/node": "^8.0.0",
|
|
"class-variance-authority": "^0.7.1",
|
|
"clsx": "^2.1.1",
|
|
"date-fns": "^4.1.0",
|
|
"dotenv": "^17.2.3",
|
|
"lucide-react": "^0.563.0",
|
|
"next": "16.1.4",
|
|
"prisma": "5",
|
|
"react": "19.2.3",
|
|
"react-day-picker": "^9.13.0",
|
|
"react-dom": "19.2.3",
|
|
"recharts": "^3.7.0",
|
|
"tailwind-merge": "^3.4.0"
|
|
},
|
|
"devDependencies": {
|
|
"@cloudflare/workers-types": "^4.20250121.0",
|
|
"@tailwindcss/postcss": "^4",
|
|
"@types/node": "^20",
|
|
"@types/react": "^19",
|
|
"@types/react-dom": "^19",
|
|
"eslint": "^9",
|
|
"eslint-config-next": "16.1.4",
|
|
"tailwindcss": "^4",
|
|
"tw-animate-css": "^1.4.0",
|
|
"typescript": "^5",
|
|
"wrangler": "^4"
|
|
},
|
|
"ignoreScripts": [
|
|
"sharp",
|
|
"unrs-resolver"
|
|
],
|
|
"trustedDependencies": [
|
|
"sharp",
|
|
"unrs-resolver"
|
|
]
|
|
} |