fix again

This commit is contained in:
Omer Sabic 2024-05-29 20:10:26 +02:00
parent 27ff4d8181
commit 0e73535c48
3 changed files with 18 additions and 4 deletions

12
package-lock.json generated
View File

@ -11,6 +11,7 @@
"aws-sdk": "^2.1628.0", "aws-sdk": "^2.1628.0",
"bits-ui": "^0.21.7", "bits-ui": "^0.21.7",
"clsx": "^2.1.1", "clsx": "^2.1.1",
"dotenv": "^16.4.5",
"formsnap": "^1.0.0", "formsnap": "^1.0.0",
"lucide-svelte": "^0.373.0", "lucide-svelte": "^0.373.0",
"mode-watcher": "^0.3.0", "mode-watcher": "^0.3.0",
@ -1624,6 +1625,17 @@
"resolved": "https://registry.npmjs.org/dlv/-/dlv-1.1.3.tgz", "resolved": "https://registry.npmjs.org/dlv/-/dlv-1.1.3.tgz",
"integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==" "integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA=="
}, },
"node_modules/dotenv": {
"version": "16.4.5",
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.5.tgz",
"integrity": "sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg==",
"engines": {
"node": ">=12"
},
"funding": {
"url": "https://dotenvx.com"
}
},
"node_modules/eastasianwidth": { "node_modules/eastasianwidth": {
"version": "0.2.0", "version": "0.2.0",
"resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz",

View File

@ -36,6 +36,7 @@
"aws-sdk": "^2.1628.0", "aws-sdk": "^2.1628.0",
"bits-ui": "^0.21.7", "bits-ui": "^0.21.7",
"clsx": "^2.1.1", "clsx": "^2.1.1",
"dotenv": "^16.4.5",
"formsnap": "^1.0.0", "formsnap": "^1.0.0",
"lucide-svelte": "^0.373.0", "lucide-svelte": "^0.373.0",
"mode-watcher": "^0.3.0", "mode-watcher": "^0.3.0",

View File

@ -1,7 +1,8 @@
import * as env from '$env/static/public'; import dotenv from 'dotenv';
dotenv.config();
export const config = { export const config = {
api_url: env.PUBLIC_API_URL || "", api_url: process.env.PUBLIC_API_URL || "",
frontend_url: env.PUBLIC_FRONTEND_URL || "", frontend_url: process.env.PUBLIC_FRONTEND_URL || "",
sites_url: env.PUBLIC_SITES_URL || "" sites_url: process.env.PUBLIC_SITES_URL || ""
} }