fix: use dev.vars for dev variables

This commit is contained in:
2024-06-13 06:14:10 -04:00
parent 64b144612a
commit d038d30d9d
2 changed files with 1 additions and 7 deletions

View File

@@ -4,7 +4,7 @@
"description": "API for Aniplay",
"main": "src/index.ts",
"scripts": {
"dev:cloudflare": "TURSO_URL=http://127.0.0.1:3000 TURSO_AUTH_TOKEN=123 wrangler dev src/index.ts --port 8080",
"dev:cloudflare": "wrangler dev src/index.ts --port 8080",
"dev:server": "TURSO_URL=http://127.0.0.1:3000 TURSO_AUTH_TOKEN=123 bun run --watch src/index.ts",
"prod:server": "bun run src/index.ts",
"deploy": "wrangler deploy --minify src/index.ts",

View File

@@ -5,12 +5,6 @@ compatibility_date = "2023-12-01"
node_compat = true
[vars]
TURSO_URL = "http://127.0.0.1:8080"
QSTASH_URL = "https://qstash.upstash.io/v2/publish"
ENABLE_ANIFY = false
[env.production]
[env.production.vars]
TURSO_URL = "libsql://humble-argent-silverandroid.turso.io"
QSTASH_URL = "https://qstash.upstash.io/v2/publish"
ENABLE_ANIFY = false