Initialize web application via create-cloudflare CLI
Details: C3 = create-cloudflare@2.55.1 project name = high-performance-structures framework = next framework cli = create-next-app@15.5.6 package manager = npm@11.6.2 wrangler = wrangler@4.50.0 git = 2.51.1
This commit is contained in:
parent
2e55ca77c5
commit
a40e0ba08a
15
.gitignore
vendored
15
.gitignore
vendored
@ -3,12 +3,8 @@
|
|||||||
# dependencies
|
# dependencies
|
||||||
/node_modules
|
/node_modules
|
||||||
/.pnp
|
/.pnp
|
||||||
.pnp.*
|
.pnp.js
|
||||||
.yarn/*
|
.yarn/install-state.gz
|
||||||
!.yarn/patches
|
|
||||||
!.yarn/plugins
|
|
||||||
!.yarn/releases
|
|
||||||
!.yarn/versions
|
|
||||||
|
|
||||||
# testing
|
# testing
|
||||||
/coverage
|
/coverage
|
||||||
@ -28,11 +24,9 @@
|
|||||||
npm-debug.log*
|
npm-debug.log*
|
||||||
yarn-debug.log*
|
yarn-debug.log*
|
||||||
yarn-error.log*
|
yarn-error.log*
|
||||||
.pnpm-debug.log*
|
|
||||||
|
|
||||||
# env files (can opt-in for committing if needed)
|
# local env files
|
||||||
.env*
|
.env*.local
|
||||||
!.env.example
|
|
||||||
|
|
||||||
# vercel
|
# vercel
|
||||||
.vercel
|
.vercel
|
||||||
@ -48,3 +42,4 @@ next-env.d.ts
|
|||||||
.wrangler
|
.wrangler
|
||||||
.dev.vars*
|
.dev.vars*
|
||||||
!.dev.vars.example
|
!.dev.vars.example
|
||||||
|
!.env.example
|
||||||
|
|||||||
15757
cloudflare-env.d.ts
vendored
15757
cloudflare-env.d.ts
vendored
File diff suppressed because it is too large
Load Diff
@ -1,9 +1,9 @@
|
|||||||
import { defineCloudflareConfig } from "@opennextjs/cloudflare";
|
import { defineCloudflareConfig } from "@opennextjs/cloudflare";
|
||||||
|
|
||||||
export default defineCloudflareConfig({
|
export default defineCloudflareConfig({
|
||||||
// Uncomment to enable R2 cache,
|
// Uncomment to enable R2 cache,
|
||||||
// It should be imported as:
|
// It should be imported as:
|
||||||
// `import r2IncrementalCache from "@opennextjs/cloudflare/overrides/incremental-cache/r2-incremental-cache";`
|
// `import r2IncrementalCache from "@opennextjs/cloudflare/overrides/incremental-cache/r2-incremental-cache";`
|
||||||
// See https://opennext.js.org/cloudflare/caching for more details
|
// See https://opennext.js.org/cloudflare/caching for more details
|
||||||
// incrementalCache: r2IncrementalCache,
|
// incrementalCache: r2IncrementalCache,
|
||||||
});
|
});
|
||||||
|
|||||||
18505
package-lock.json
generated
Normal file
18505
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -21,13 +21,13 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@eslint/eslintrc": "^3",
|
"@eslint/eslintrc": "^3",
|
||||||
"@tailwindcss/postcss": "^4",
|
"@tailwindcss/postcss": "^4",
|
||||||
"@types/node": "^20",
|
"@types/node": "^20.19.25",
|
||||||
"@types/react": "^19",
|
"@types/react": "^19",
|
||||||
"@types/react-dom": "^19",
|
"@types/react-dom": "^19",
|
||||||
"eslint": "^9",
|
"eslint": "^9",
|
||||||
"eslint-config-next": "15.4.6",
|
"eslint-config-next": "15.4.6",
|
||||||
"tailwindcss": "^4",
|
"tailwindcss": "^4",
|
||||||
"typescript": "^5",
|
"typescript": "^5",
|
||||||
"wrangler": "^4.45.4"
|
"wrangler": "^4.50.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1,4 +1,3 @@
|
|||||||
# https://developers.cloudflare.com/workers/static-assets/headers
|
# https://developers.cloudflare.com/workers/static-assets/headers
|
||||||
# https://opennext.js.org/cloudflare/caching#static-assets-caching
|
|
||||||
/_next/static/*
|
/_next/static/*
|
||||||
Cache-Control: public,max-age=31536000,immutable
|
Cache-Control: public,max-age=31536000,immutable
|
||||||
|
|||||||
@ -21,7 +21,12 @@
|
|||||||
"paths": {
|
"paths": {
|
||||||
"@/*": ["./src/*"]
|
"@/*": ["./src/*"]
|
||||||
},
|
},
|
||||||
"types": ["./cloudflare-env.d.ts", "node"]
|
"types": [
|
||||||
|
"./cloudflare-env.d.ts",
|
||||||
|
"./cloudflare-env.d.ts",
|
||||||
|
"node",
|
||||||
|
"node"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
|
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
|
||||||
"exclude": ["node_modules"]
|
"exclude": ["node_modules"]
|
||||||
|
|||||||
@ -4,10 +4,13 @@
|
|||||||
*/
|
*/
|
||||||
{
|
{
|
||||||
"$schema": "node_modules/wrangler/config-schema.json",
|
"$schema": "node_modules/wrangler/config-schema.json",
|
||||||
"name": "next",
|
"name": "high-performance-structures",
|
||||||
"main": ".open-next/worker.js",
|
"main": ".open-next/worker.js",
|
||||||
"compatibility_date": "2025-11-06",
|
"compatibility_date": "2025-03-01",
|
||||||
"compatibility_flags": ["nodejs_compat", "global_fetch_strictly_public"],
|
"compatibility_flags": [
|
||||||
|
"nodejs_compat",
|
||||||
|
"global_fetch_strictly_public"
|
||||||
|
],
|
||||||
"assets": {
|
"assets": {
|
||||||
"binding": "ASSETS",
|
"binding": "ASSETS",
|
||||||
"directory": ".open-next/assets"
|
"directory": ".open-next/assets"
|
||||||
@ -15,4 +18,34 @@
|
|||||||
"observability": {
|
"observability": {
|
||||||
"enabled": true
|
"enabled": true
|
||||||
}
|
}
|
||||||
}
|
/**
|
||||||
|
* Smart Placement
|
||||||
|
* Docs: https://developers.cloudflare.com/workers/configuration/smart-placement/#smart-placement
|
||||||
|
*/
|
||||||
|
// "placement": { "mode": "smart" }
|
||||||
|
/**
|
||||||
|
* Bindings
|
||||||
|
* Bindings allow your Worker to interact with resources on the Cloudflare Developer Platform, including
|
||||||
|
* databases, object storage, AI inference, real-time communication and more.
|
||||||
|
* https://developers.cloudflare.com/workers/runtime-apis/bindings/
|
||||||
|
*/
|
||||||
|
/**
|
||||||
|
* Environment Variables
|
||||||
|
* https://developers.cloudflare.com/workers/wrangler/configuration/#environment-variables
|
||||||
|
*/
|
||||||
|
// "vars": { "MY_VARIABLE": "production_value" }
|
||||||
|
/**
|
||||||
|
* Note: Use secrets to store sensitive data.
|
||||||
|
* https://developers.cloudflare.com/workers/configuration/secrets/
|
||||||
|
*/
|
||||||
|
/**
|
||||||
|
* Static Assets
|
||||||
|
* https://developers.cloudflare.com/workers/static-assets/binding/
|
||||||
|
*/
|
||||||
|
// "assets": { "directory": "./public/", "binding": "ASSETS" }
|
||||||
|
/**
|
||||||
|
* Service Bindings (communicate between multiple Workers)
|
||||||
|
* https://developers.cloudflare.com/workers/wrangler/configuration/#service-bindings
|
||||||
|
*/
|
||||||
|
// "services": [{ "binding": "MY_SERVICE", "service": "my-service" }]
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user