Created
April 16, 2022 17:09
-
-
Save daliborgogic/0faf1aef709f74b2d422ac507fb64ba5 to your computer and use it in GitHub Desktop.
.env vite
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import path from 'node:path' | |
import { loadEnv } from 'vite' | |
export default ({ mode }) => { | |
return { | |
env: Object.assign(process.env, loadEnv(mode, process.cwd())) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment