Skip to content

Commit

Permalink
update to-do
Browse files Browse the repository at this point in the history
  • Loading branch information
brillout committed Jul 4, 2024
1 parent d119413 commit bd84202
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vike/node/plugin/plugins/envVars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ import { assert, assertPosixPath, assertUsage, assertWarning, escapeRegex, isArr
import { sourceMapPassthrough } from '../shared/rollupSourceMap.js'
import { getModuleFilePath } from '../shared/getFilePath.js'

// TODO/enventually: (after we implemented vike.config.js)
// - Make import.meta.env work inside +config.js
// - For it to work, we'll probably need the user to define the settings (e.g. `envDir`) for loadEnv() inside vike.config.js instead of vite.config.js
// - Or stop using Vite's `mode` implemention and have Vike implement its own `mode` feature? (So that the only dependencies are `$ vike build --mode staging` and `$ MODE=staging vike build`.)

const PUBLIC_ENV_PREFIX = 'PUBLIC_ENV__'
const PUBLIC_ENV_WHITELIST = [
// https://github.com/vikejs/vike/issues/1724
Expand Down

0 comments on commit bd84202

Please sign in to comment.