Skip to content

Environment variables #298

@jnsprnw

Description

@jnsprnw

These variables need to be set in a .env file or something equivalent.

Build

BUILD_ENV=static npm run build

Should it use the Netlify adapter or not?
static for static adapter. Use this for production. Leave out for Netlify.

Environment variables

Variable Description Value
VITE_HEROKU_URL URL of Strapi https://….herokuapp.com
VITE_DATA_API_URL URL of the API Development: https://….climateanalytics.org/api, Production: https://….climateanalytics.org/api
VITE_STRAPI_LOCALE #148 en-EU
VITE_MAPBOX_ACCESS_TOKEN Access token for Mapbox pk.ey…
VITE_MAPBOX_STYLE_LIGHT Style for the regular map mapbox://styles/climateanalytics/…
VITE_MAPBOX_STYLE_STUDY_LOCATIONS Style for the study locations map mapbox://styles/climateanalytics/…
VITE_SCREENSHOT_URL URL of the service running Puppeteer https://….climateanalytics.org/api/…
VITE_APP_URL The location of the final dashboard https://….climateanalytics.org
VITE_IS_PUBLIC_VERSION Allows robots to crawl website true|false
VITE_MAPBOX_STYLE_SATELLITE Mapbox style for satellite images mapbox://styles/climateanalytics/…
VITE_MAPBOX_STYLE_GLOBE Style of the globe mapbox://styles/climateanalytics/…

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationfrontend

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions