Skip to content

Commit 6e17da9

Browse files
committed
fix: use path.resolve for ENV_FILE to support absolute paths
Signed-off-by: Ethan Choe <ethanchoe3@gmail.com>
1 parent 6cc3e94 commit 6e17da9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

frontend/next.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import path from "path";
66
// the Makefile) so per-instance env files like `.env.instance2` are respected;
77
// defaults to `.env`. Absolute ENV_FILE paths are used as-is.
88
dotenv.config({
9-
path: path.join(process.cwd(), "..", process.env.ENV_FILE || ".env"),
9+
path: path.resolve(process.cwd(), "..", process.env.ENV_FILE || ".env"),
1010
});
1111

1212
function getAllowedDevOrigins(): string[] {

0 commit comments

Comments
 (0)