# Local development variables for `wrangler pages dev` / `wrangler dev`. # Copy this file to `.dev.vars` (gitignored) and fill in your own values. # # PUBLIC_BASE_URL is the origin the app is served from. On a loopback origin the # app uses the atproto localhost exception and logging in works without any # tunnel: the authorization server synthesises the client metadata from the # client_id itself, so nothing has to be published and no signing key is needed. # # Point it at a loopback origin, and open the app on that same origin: # # http://127.0.0.1:8788 full local login. Use 127.0.0.1, not localhost: the # spec only allows 127.0.0.1/[::1] redirect URIs. # https://.ngrok.app exercises the deployed (confidential) client config # locally, which does publish metadata over HTTPS. # See LOCAL_DEVELOPMENT.md. # PUBLIC_BASE_URL=http://127.0.0.1:8788 SESSION_SECRET=change-this-to-a-random-secret # Only needed away from loopback, where the client signs its own requests # (`npm run setup:key`). # PRIVATE_KEY_JWK={"kty":"...generated by npm run setup:key..."}