Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions sample.env
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,11 @@ REACT_APP_SENTRY_ENVIRONMENT='your_sentry_env_name'

# Airtable API
REACT_APP_AIRTABLE_API_KEY='your_airtable_api_key'

# Optional Airtable base overrides. If unset, the ELA production base IDs
# hardcoded in src/components/config/api.ts are used. Contributors who do
# not have access to the official ELA bases can duplicate the schema into
# their own workspace and set the corresponding env var here to point the
# local dev build at it.
REACT_APP_AIRTABLE_BASE=''
REACT_APP_AIRTABLE_CENSUS_BASE=''
6 changes: 4 additions & 2 deletions src/components/config/api.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { RouteLocation } from './types'

export const AIRTABLE_API_KEY = process.env.REACT_APP_AIRTABLE_API_KEY as string
export const AIRTABLE_BASE = 'applPEl3BsnpuszQu'
export const AIRTABLE_CENSUS_BASE = 'appjb6Qnp4lTNz7Gn'
export const AIRTABLE_BASE =
process.env.REACT_APP_AIRTABLE_BASE || 'applPEl3BsnpuszQu'
export const AIRTABLE_CENSUS_BASE =
process.env.REACT_APP_AIRTABLE_CENSUS_BASE || 'appjb6Qnp4lTNz7Gn'

// TODO: get this into provider/global so it doesn't need adding every time
export const reactQueryDefaults = {
Expand Down