feat: support cloudflare by diverce
This commit is contained in:
parent
c71d4e6b57
commit
ae083a7992
4
.gitignore
vendored
4
.gitignore
vendored
@ -41,4 +41,6 @@ yarn-error.log*
|
|||||||
next-env.d.ts
|
next-env.d.ts
|
||||||
|
|
||||||
# content collections
|
# content collections
|
||||||
.content-collections
|
.content-collections
|
||||||
|
# OpenNext build output
|
||||||
|
.open-next
|
||||||
|
6
open-next.config.ts
Normal file
6
open-next.config.ts
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
import { defineCloudflareConfig } from "@opennextjs/cloudflare";
|
||||||
|
|
||||||
|
|
||||||
|
export default defineCloudflareConfig({
|
||||||
|
|
||||||
|
});
|
21838
package-lock.json
generated
Normal file
21838
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
11
package.json
11
package.json
@ -14,7 +14,10 @@
|
|||||||
"db:push": "drizzle-kit push",
|
"db:push": "drizzle-kit push",
|
||||||
"db:studio": "drizzle-kit studio",
|
"db:studio": "drizzle-kit studio",
|
||||||
"docs": "content-collections build",
|
"docs": "content-collections build",
|
||||||
"email": "email dev --dir src/mail/emails --port 3333"
|
"email": "email dev --dir src/mail/emails --port 3333",
|
||||||
|
"preview": "opennextjs-cloudflare && wrangler dev",
|
||||||
|
"deploy": "opennextjs-cloudflare && wrangler deploy",
|
||||||
|
"cf-typegen": "wrangler types --env-interface CloudflareEnv cloudflare-env.d.ts"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ai-sdk/openai": "^1.1.13",
|
"@ai-sdk/openai": "^1.1.13",
|
||||||
@ -130,6 +133,7 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@biomejs/biome": "1.9.4",
|
"@biomejs/biome": "1.9.4",
|
||||||
"@content-collections/cli": "^0.1.6",
|
"@content-collections/cli": "^0.1.6",
|
||||||
|
"@opennextjs/cloudflare": "^1.0.0-beta.4",
|
||||||
"@tailwindcss/postcss": "^4.0.14",
|
"@tailwindcss/postcss": "^4.0.14",
|
||||||
"@types/mdx": "^2.0.13",
|
"@types/mdx": "^2.0.13",
|
||||||
"@types/node": "^20",
|
"@types/node": "^20",
|
||||||
@ -142,6 +146,7 @@
|
|||||||
"react-email": "3.0.7",
|
"react-email": "3.0.7",
|
||||||
"tailwindcss": "^4.0.14",
|
"tailwindcss": "^4.0.14",
|
||||||
"tsx": "^4.19.3",
|
"tsx": "^4.19.3",
|
||||||
"typescript": "^5"
|
"typescript": "^5",
|
||||||
|
"wrangler": "^4.14.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
12
wrangler.jsonc
Normal file
12
wrangler.jsonc
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"$schema": "node_modules/wrangler/config-schema.json",
|
||||||
|
"main": ".open-next/worker.js",
|
||||||
|
"name": "mksaas-template",
|
||||||
|
"compatibility_date": "2024-12-30",
|
||||||
|
"compatibility_flags": ["nodejs_compat"],
|
||||||
|
"assets": {
|
||||||
|
"directory": ".open-next/assets",
|
||||||
|
"binding": "ASSETS"
|
||||||
|
},
|
||||||
|
"kv_namespaces": []
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user