-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path.env.test
More file actions
45 lines (40 loc) · 2.49 KB
/
Copy path.env.test
File metadata and controls
45 lines (40 loc) · 2.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Playwright deterministic test env — committed, NO SECRETS.
#
# Loaded by playwright.config.ts with `override: true` so these values are
# baked into `next build` the same way on every machine (local laptop, CI).
# This ensures both local and CI produce identical client bundles and hit
# the same APIs during SSR and client-side fetches.
#
# Secrets (NEXTAUTH_SECRET, real tokens) still come from:
# - local: the developer's own .env (gitignored)
# - CI: GitHub Secrets wired up in .github/workflows/playwright.yml
#
# If you add a new `process.env.NEXT_PUBLIC_*` branch in the codebase that
# tests rely on, pin its test value here — not in the workflow.
# ── Build shape ──────────────────────────────────────────────────────
# Matches the "development" build:
# - full widget registry (widgets_dev + IUCN entry included)
# - RecoilDevTools mounted
# - Transifex PseudoTranslationPolicy enabled
# - national-dashboard legal_status rendered
# - cookies non-secure (so next-auth works over http://localhost)
NEXT_PUBLIC_VERCEL_ENV=development
NEXT_PUBLIC_ENVIRONMENT=development
# Enable the same feature flags the local .env enables, so tests hit
# AlertsWidget (not AlertsWidgetStaging) and see the login menu items.
NEXT_PUBLIC_FEATURED_FLAGS=
# Silence GA during tests — no real measurement ID, no outbound requests.
NEXT_PUBLIC_GA_ID=
# ── API URLs ─────────────────────────────────────────────────────────
# Pinned so local and CI builds produce identical bundles and SSR/client
# fetches hit the same endpoints. Without this, CI used GitHub Secrets
# that could point to a different or broken API, causing 500s and
# undefined-data crashes that never reproduced locally.
NEXT_PUBLIC_API_URL=https://mangrove-atlas-api-staging.herokuapp.com/api/v2
NEXT_PUBLIC_MRTT_SITE=https://mrtt-staging.globalmangrovewatch.org
NEXT_PUBLIC_AUTH_URL=https://mangrove-atlas-api-staging.herokuapp.com
NEXT_PUBLIC_ANALYSIS_API_URL=https://us-central1-mangrove-atlas-246414.cloudfunctions.net
NEXT_PUBLIC_ANALYSIS_API_PATH=analysis-staging
# Server-side only — used by NextAuth to validate sessions.
AUTH_API_URL=https://mangrove-atlas-api-staging.herokuapp.com/
NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN=pk.eyJ1IjoiZ2xvYmFsbWFuZ3JvdmV3YXRjaCIsImEiOiJjbGIybnZsMW4wNjNqM3BucGJ6NXVzZHBiIn0.LTOZXrFVilMBleaeHv9NgQ