-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
18 lines (17 loc) · 1.19 KB
/
Copy path.env.example
File metadata and controls
18 lines (17 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Copy to .env.local for `npm run dev`, or set these as real environment variables at build
# time in CI/CD. All PUBLIC_* vars are bundled into the client-side JS (Vite's convention) --
# never put a secret in one. There is none to put here: the Cognito app client has no secret by
# design (ADR-0022), which is exactly what makes running all of this in the browser safe.
#
# Values come from the CDK stacks' own outputs once deployed:
# PUBLIC_COGNITO_DOMAIN <- OpenJobRadar-ControlPlane-<env>'s HostedUiDomain output
# PUBLIC_COGNITO_CLIENT_ID <- OpenJobRadar-ControlPlane-<env>'s UserPoolClientId output
# PUBLIC_API_BASE_URL <- OpenJobRadar-Api-<env>'s HttpApiUrl output
# PUBLIC_REDIRECT_URI/PUBLIC_LOGOUT_URI must exactly match a URL in that same environment's
# OPENJOBRADAR_CALLBACK_URLS/OPENJOBRADAR_LOGOUT_URLS (infra/bin/app.ts) -- Cognito rejects a
# redirect it wasn't configured with.
PUBLIC_COGNITO_DOMAIN=openjobradar-dev.auth.us-east-1.amazoncognito.com
PUBLIC_COGNITO_CLIENT_ID=replace-with-real-client-id
PUBLIC_REDIRECT_URI=http://localhost:4321/callback
PUBLIC_LOGOUT_URI=http://localhost:4321/
PUBLIC_API_BASE_URL=https://replace-with-real-api-id.execute-api.us-east-1.amazonaws.com