From 4a82045c861117db2fa1ea8c28ac7ac3041907ac Mon Sep 17 00:00:00 2001 From: rotorsoft Date: Mon, 12 Aug 2024 14:04:45 -0400 Subject: [PATCH] always load from the file path --- packages/commonwealth/client/vite.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/commonwealth/client/vite.config.ts b/packages/commonwealth/client/vite.config.ts index 4109df6dd36..26959634b36 100644 --- a/packages/commonwealth/client/vite.config.ts +++ b/packages/commonwealth/client/vite.config.ts @@ -17,7 +17,7 @@ function createScriptsResolver(folder: string): Alias { // https://vitejs.dev/config/ export default defineConfig(({ mode }) => { - const envPath = path.dirname(path.dirname(process.cwd())); // root project .env + const envPath = path.dirname(path.dirname(projectRootDir)); // root project .env const env = loadEnv(mode, envPath, ''); const unleashConfig = {