Add Cloudflare Workers deploy config via OpenNext
- Fix build:worker script to use opennextjs-cloudflare build - Add open-next.config.ts required by OpenNext Cloudflare - Update wrangler.toml main entry to .open-next/worker.js - Ignore .open-next/ and .wrangler/ build artifacts Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.7
parent
d211c40fa1
commit
765bcdca44
+7
-2
@@ -6,7 +6,10 @@
|
||||
"dev": "next dev",
|
||||
"build": "next build",
|
||||
"start": "next start",
|
||||
"lint": "eslint"
|
||||
"lint": "eslint",
|
||||
"build:worker": "bunx opennextjs-cloudflare build",
|
||||
"preview": "wrangler dev",
|
||||
"deploy": "bun run build:worker && wrangler deploy"
|
||||
},
|
||||
"dependencies": {
|
||||
"@base-ui/react": "^1.4.1",
|
||||
@@ -31,6 +34,8 @@
|
||||
"eslint": "^9",
|
||||
"eslint-config-next": "16.2.5",
|
||||
"tailwindcss": "^4",
|
||||
"typescript": "^5"
|
||||
"typescript": "^5",
|
||||
"@opennextjs/cloudflare": "latest",
|
||||
"wrangler": "^4.90.0"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user