Skip to content

Fix reading env variable from production build

Mael Gaonach requested to merge fix-build into main

The variables should always be referenced with the full import path, like

export const DEFAULT: Config = {
  icat_url: import.meta.env.VITE_ICATPLUS_URL,
}

At compile time, vite looks for import.meta.env.VAR and replaces it with the value of the variable

Merge request reports

Loading