mirror of
https://github.com/nimbusdotstorage/Nimbus
synced 2026-04-22 17:45:03 +02:00
chore: added upstash vs valkey getter handling (upstash does not resturn string) chore: added wrangler dev, bun dev, and production runtime handling for server chore: context must be re-created (not a singleton) for edge runtime)
21 lines
545 B
TOML
21 lines
545 B
TOML
name = "nimbus-server"
|
|
main = "src/index.ts"
|
|
compatibility_date = "2025-05-18"
|
|
compatibility_flags = ["nodejs_compat"]
|
|
observability = { enabled = true }
|
|
|
|
[dev]
|
|
# wrangler dev must be run on port 80 and with sudo because wrangler sets
|
|
# Access-Control-Allow-Origin to http://localhost:1284:1284:3000
|
|
port = 80
|
|
host = "localhost"
|
|
local_protocol = "http"
|
|
|
|
[env.preview]
|
|
|
|
[env.staging]
|
|
routes = [{ pattern = "staging.api.nimbus.storage", custom_domain = true }]
|
|
|
|
[env.production]
|
|
routes = [{ pattern = "api.nimbus.storage", custom_domain = true }]
|