mirror of https://github.com/buster-so/buster.git
update wrangler to use different envs
This commit is contained in:
parent
5e555f025d
commit
9fe9153975
|
@ -90,3 +90,5 @@ drizzle/meta/
|
||||||
/packages/aTest/.mastra
|
/packages/aTest/.mastra
|
||||||
**/*.private.*
|
**/*.private.*
|
||||||
apps/web-tss/.env.prod
|
apps/web-tss/.env.prod
|
||||||
|
apps/web-tss/.env.production
|
||||||
|
apps/web-tss/.env.staging
|
||||||
|
|
|
@ -8,8 +8,9 @@
|
||||||
"dev:fast": "pnpm run build:local && pnpm run start:bun",
|
"dev:fast": "pnpm run build:local && pnpm run start:bun",
|
||||||
"start": "echo 'For Cloudflare deployment, no start command is needed. Use start:local for local builds or start:wrangler for Cloudflare Workers dev'",
|
"start": "echo 'For Cloudflare deployment, no start command is needed. Use start:local for local builds or start:wrangler for Cloudflare Workers dev'",
|
||||||
"start:bun": "bun .output/server/index.mjs",
|
"start:bun": "bun .output/server/index.mjs",
|
||||||
"start:wrangler": "npx wrangler dev .output/server/index.mjs --assets .output/public",
|
"deploy:dev": "pnpm run build && npx wrangler deploy .output/server/index.mjs --env dev --assets .output/public",
|
||||||
"deploy:wrangler": "npx wrangler deploy .output/server/index.mjs --assets .output/public",
|
"deploy:staging": "pnpm run build && npx wrangler deploy .output/server/index.mjs --env staging --assets .output/public",
|
||||||
|
"deploy:production": "pnpm run build && npx wrangler deploy .output/server/index.mjs --env production --assets .output/public",
|
||||||
"build": "cross-env NODE_OPTIONS=--max-old-space-size=8192 vite build -- --typecheck",
|
"build": "cross-env NODE_OPTIONS=--max-old-space-size=8192 vite build -- --typecheck",
|
||||||
"build:local": "cross-env NODE_OPTIONS=--max-old-space-size=8192 vite build -- --typecheck --local",
|
"build:local": "cross-env NODE_OPTIONS=--max-old-space-size=8192 vite build -- --typecheck --local",
|
||||||
"build:no-typecheck": "cross-env NODE_OPTIONS=--max-old-space-size=8192 vite build",
|
"build:no-typecheck": "cross-env NODE_OPTIONS=--max-old-space-size=8192 vite build",
|
||||||
|
|
|
@ -0,0 +1,44 @@
|
||||||
|
{
|
||||||
|
"$schema": "node_modules/wrangler/config-schema.json",
|
||||||
|
"name": "web-tss",
|
||||||
|
"main": "./.output/server/index.mjs",
|
||||||
|
"compatibility_date": "2025-09-02",
|
||||||
|
"compatibility_flags": ["nodejs_compat", "no_nodejs_compat_v2"],
|
||||||
|
|
||||||
|
"assets": {
|
||||||
|
"directory": ".output/public"
|
||||||
|
},
|
||||||
|
|
||||||
|
"observability": {
|
||||||
|
"enabled": true
|
||||||
|
},
|
||||||
|
|
||||||
|
"env": {
|
||||||
|
// Development Environment
|
||||||
|
"dev": {
|
||||||
|
"name": "web-tss-dev",
|
||||||
|
"vars": {
|
||||||
|
// Development-specific variables can be set here
|
||||||
|
// Or loaded from .env.dev file
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
// Staging Environment
|
||||||
|
"staging": {
|
||||||
|
"name": "web-tss-staging",
|
||||||
|
"vars": {
|
||||||
|
// Staging-specific variables can be set here
|
||||||
|
// Or loaded from .env.staging file
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
// Production Environment
|
||||||
|
"production": {
|
||||||
|
"name": "web-tss-production",
|
||||||
|
"vars": {
|
||||||
|
// Production-specific variables can be set here
|
||||||
|
// Or loaded from .env.production file
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,12 +0,0 @@
|
||||||
# wrangler.toml
|
|
||||||
"$schema" = "node_modules/wrangler/config-schema.json"
|
|
||||||
name = "web-tss"
|
|
||||||
main = "./.output/server/index.mjs"
|
|
||||||
compatibility_date = "2025-09-02"
|
|
||||||
compatibility_flags = ["nodejs_compat", "no_nodejs_compat_v2"]
|
|
||||||
|
|
||||||
[assets]
|
|
||||||
directory = ".output/public"
|
|
||||||
|
|
||||||
[observability]
|
|
||||||
enabled = true
|
|
Loading…
Reference in New Issue