From d8feb0c96afa5f5449e7f55cf54681c14e4b1899 Mon Sep 17 00:00:00 2001 From: Lars Date: Wed, 16 Oct 2024 10:46:48 +0200 Subject: [PATCH] fix: provide env values when running bundled express app --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 5c4dedc..7851294 100644 --- a/package.json +++ b/package.json @@ -19,10 +19,11 @@ "lint:prettier": "prettier --check .", "lint:tsc": "tsc --noEmit", "start:dev": "tsx --watch src/backend/index.ts", - "start": "node dist/backend/index.cjs", + "start": "dotenvx run --env-file=.env -- node dist/backend/index.cjs", "test": "codeceptjs run" }, "dependencies": { + "@dotenvx/dotenvx": "^1.14.2", "@serlo/editor": "0.16.0", "express": "^4.19.2", "fp-ts": "2.16.9", @@ -39,7 +40,6 @@ "uuid": "^10.0.0" }, "devDependencies": { - "@dotenvx/dotenvx": "^1.14.2", "@eslint/compat": "^1.1.1", "@eslint/js": "^9.12.0", "@types/jsonwebtoken": "9.0.7",