← Server architecture · all tasks

Split PUBLIC_BASE_URL into EMAIL_VERIFY_BASE_URL and LINK_CODE_BASE_URL

done priority 2 estimate S

server-architecture/016 · created 2026-08-13 · updated 2026-08-18

What this is

The follow-up task 012 flagged and deliberately did not fix. The director built two different public links from a single PUBLIC_BASE_URL:

Those are different hosts, so one value could never be right for both. Setting the variable to the director’s origin (012’s choice, correct for the security-relevant links) made the QR resolve to …/director/play?link=…, which nothing serves.

What was done

Two variables replace the one, each falling back specific → PUBLIC_BASE_URLhttp://localhost:8081, so an older env file behaves exactly as before:

game.env.example documents both and marks PUBLIC_BASE_URL deprecated. The live droplet env was updated and the service restarted.

Definition of done

Assumptions

That the workspace site (lor.kris.ai-task-runner.com/play/) is the current web client, per land-of-lor/docs/handoff/historic/010-accounts.md’s deploy section — not lor-server.cocreations.com.au/play/, which still serves a stale pocs/multiplayer-poc build. Retiring that stale route is separate work, not done here.

View source in repository · also available as raw markdown.