Skip to main content

Cloud Run: with session affinity

cloud-run-session-affinity.ts

const config = {
appName: "test-app",
customerName: "pan",
components: {
api: {
dir: "api",
build: {
type: "node",
},
deploy: {
type: "google-cloudrun",
projectId: "google-project-id",
region: "europe-west6",

service: {
sessionAffinity: true,
},
},
},
},
} satisfies Config;