Add session-proxy worker and deploy-all script

Introduce a new `session-proxy` worker with its configuration file. Update deployment scripts to include `deploy:session-proxy` and add a `deploy:all` script for streamlined deployment of all workers. Expand README with deployment instructions and usage of `pnpm` as an alternative to `bun`.
This commit is contained in:
geoffsee
2025-05-27 15:14:59 -04:00
committed by Geoff Seemueller
parent fb7031fc89
commit 46b912ba93
3 changed files with 33 additions and 0 deletions

View File

@@ -17,6 +17,12 @@ Fork of [geoff.seemueller.io](https://geoff.seemueller.io).
4. Setup KV_STORAGE bindings for local development.
5. In isolated shells, run `bun run server:dev` and `bun run client:dev`
> Note: it should be possible to use pnpm in place of bun
## Deploying
1. Find all instances of example.com in this repository and replace with your domain.
2. Run `wrangler deploy:all`
History
---

View File

@@ -11,6 +11,8 @@
"deploy": "CI=true vite build && wrangler deploy --minify",
"deploy:email-service": "wrangler deploy --cwd workers/email",
"deploy:analytics-service": "wrangler deploy --cwd workers/analytics",
"deploy:session-proxy": "wrangler deploy --cwd workers/session-proxy",
"deploy:all": "pnpm deploy && pnpm deploy:session:proxy && pnpm deploy:email-service && pnpm deploy:analytics-service",
"tail": "wrangler tail",
"tail:email-service": "wrangler tail -c workers/email/wrangler-email.toml",
"tail:analytics-service": "wrangler tail -c workers/analytics/wrangler-analytics.toml",

View File

@@ -0,0 +1,25 @@
{
"name": "session-proxy-open-gsio",
"main": "./index.ts",
"dev": {
"port": 3001
},
"compatibility_date": "2025-05-27",
"compatibility_flags": [
"nodejs_compat"
],
"preview_urls": false,
"workers_dev": false,
"routes": [
{
"custom_domain": true,
"pattern": "example.com"
}
],
"services": [
{
"binding": "WORKER_SITE",
"service": "open-gsio"
}
]
}