Skip to content
Snippets Groups Projects
Commit 6fe7183a authored by Emmanuel Raviart's avatar Emmanuel Raviart
Browse files

Use [] to access env variables.

parent 4fb9d462
No related branches found
No related tags found
No related merge requests found
......@@ -11,9 +11,9 @@ export interface Config {
}
const [validConfig, error] = validateConfig({
apiBaseUrl: process.env.API_BASE_URL || "http://localhost:8000/",
proxy: process.env.PROXY || false,
title: process.env.TITLE || "Simulateur socio-fiscal",
apiBaseUrl: process.env["API_BASE_URL"],
proxy: process.env["PROXY"],
title: process.env["TITLE"],
})
if (error !== null) {
console.error(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment