A town simulation in pale isometric line art, implemented with Ritmo ECS and PixiJs 3D
Serve the production game at inkline.typeonce.dev (#2)
Sandro Maglione88ab57a861db
diff --git a/DEVELOPMENT.md b/DEVELOPMENT.mdindex 171a3f3..6d28616 100644--- a/DEVELOPMENT.md+++ b/DEVELOPMENT.md@@ -126,8 +126,10 @@ pnpm release --profile admin --yes --no-inputRelease from an up-to-date `main`. The release command checks the game'stypes and simulation and the deployment config, then Alchemy builds and-deploys the game. It prints the live URL; check that the game opens and-save/load works there after each release.+deploys the game to <https://inkline.typeonce.dev>. Alchemy attaches that+custom domain to the `prod` Worker and creates its DNS record and certificate+in the `typeonce.dev` Cloudflare zone. Check that the game opens and save/load+works there after each release.`admin` is the existing local Alchemy Cloudflare profile. On anothermachine, use your own logged-in profile or set `CLOUDFLARE_ACCOUNT_ID` and@@ -141,4 +143,5 @@ pnpm --dir deploy exec alchemy deploy --stage preview --profile adminpnpm --dir deploy exec alchemy destroy --stage preview --profile admin```-The second command removes the preview. Each stage has its own Worker.+The second command removes the preview. Each stage has its own Worker;+previews stay on their `workers.dev` URL and never claim the custom domain.diff --git a/deploy/alchemy.run.ts b/deploy/alchemy.run.tsindex 0e08fc5..ad7ace5 100644--- a/deploy/alchemy.run.ts+++ b/deploy/alchemy.run.ts@@ -7,6 +7,9 @@ import * as Effect from "effect/Effect"// Keep deployment dependencies separate from the browser game.const rootDir = fileURLToPath(new URL("..", import.meta.url))+// Only production claims the custom domain; previews stay on workers.dev.+const productionDomain = "inkline.typeonce.dev"+export default Alchemy.Stack("inkline-town",{@@ -15,7 +18,11 @@ export default Alchemy.Stack(state: Cloudflare.state()},Effect.gen(function* () {- const game = yield* Cloudflare.Website.Vite("Game", { rootDir })+ const stage = yield* Alchemy.Stage+ const game = yield* Cloudflare.Website.Vite("Game", {+ rootDir,+ ...(stage === "prod" ? { domain: productionDomain } : {})+ })return { url: game.url }}))