Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions apps/web/.env.development.local.example
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,16 @@ NEXT_PUBLIC_CLOUD_AGENT_WS_URL=ws://localhost:8794
NEXT_PUBLIC_CLOUD_AGENT_NEXT_WS_URL=ws://localhost:8794

# @url cloudflare-gastown
NEXT_PUBLIC_GASTOWN_URL=http://localhost:8803
NEXT_PUBLIC_GASTOWN_URL=http://localhost:8810
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WARNING: Port mismatch — NEXT_PUBLIC_GASTOWN_URL is set to 8810 here, but services/gastown/wrangler.jsonc declares dev.port: 8803. Port 8810 is already assigned to kiloclaw-inbound-email (services/kiloclaw-inbound-email/wrangler.jsonc), creating a collision.

The # @url cloudflare-gastown annotation causes env-sync to auto-resolve this URL to the port read from services/gastown/wrangler.jsonc (i.e. 8803), so the generated .env.development.local will use 8803 — but the hardcoded example default is misleading and incorrect. This should be 8803 to match the actual wrangler config.

Suggested change
NEXT_PUBLIC_GASTOWN_URL=http://localhost:8810
NEXT_PUBLIC_GASTOWN_URL=http://localhost:8803


# @url kilo-chat
NEXT_PUBLIC_KILO_CHAT_URL=http://localhost:8808

# @url event-service
NEXT_PUBLIC_EVENT_SERVICE_URL=ws://localhost:8809

# @url wasteland
NEXT_PUBLIC_WASTELAND_URL=http://localhost:8790
# @url cloudflare-wasteland
NEXT_PUBLIC_WASTELAND_URL=http://localhost:8796

# KiloClaw legacy recognized Stripe price IDs (test values)
# Required so settlement, plan detection, and legacy intro repair continue to recognize pre-rollout subscriptions.
Expand Down
5 changes: 5 additions & 0 deletions dev/local/services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,11 @@ const serviceMeta: Record<string, ServiceMeta> = {
dependsOn: ['postgres', 'cloudflare-git-token-service', 'nextjs'],
dir: 'services/gastown',
},
'cloudflare-wasteland': {
group: 'gastown',
dependsOn: ['postgres', 'nextjs'],
dir: 'services/wasteland',
},
};

function dockerComposeUp(service: string): string[] {
Expand Down
4 changes: 2 additions & 2 deletions services/gastown/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"postdeploy:prod": "pnpm sentry:sourcemaps",
"deploy:dev": "pnpm container:prepare && wrangler deploy --env dev",
"sentry:sourcemaps": "_SENTRY_RELEASE=$(sentry-cli releases propose-version) && sentry-cli releases new $_SENTRY_RELEASE --org=kilo-code --project=gastown-service && sentry-cli sourcemaps upload --org=kilo-code --project=gastown-service --release=$_SENTRY_RELEASE --strip-prefix 'dist/..' dist",
"dev": "pnpm container:prepare && wrangler dev --env dev --ip 0.0.0.0",
"start": "pnpm container:prepare && wrangler dev --env dev --ip 0.0.0.0",
"dev": "pnpm container:prepare && wrangler dev --env dev",
"start": "pnpm container:prepare && wrangler dev --env dev",
"types": "wrangler types --include-runtime=false && node scripts/patch-worker-types.mjs",
"test": "vitest run",
"test:watch": "vitest",
Expand Down
3 changes: 3 additions & 0 deletions services/wasteland/wrangler.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"compatibility_date": "2026-02-24",
"compatibility_flags": ["nodejs_compat"],
"placement": { "mode": "smart" },
"dev": {
"port": 8796
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WARNING: Port 8796 is already assigned to services/security-sync/wrangler.jsonc. While cloudflare-security-sync is not currently registered in dev/local/services.ts and won't conflict during normal local dev, this is a port collision in wrangler configs. If security-sync is ever added to local dev or run manually alongside wasteland, both services will attempt to bind port 8796. Consider assigning a unique port (e.g. 8812 or another unassigned value).

},
"observability": {
"enabled": true,
"head_sampling_rate": 1,
Expand Down
Loading