quick, minor: cdn_url in env, env->runtimeconfig

This commit is contained in:
NetMan 2025-03-05 23:49:24 +01:00
parent cf868f7d65
commit 8b35c0fe12
2 changed files with 5 additions and 2 deletions

View file

@ -1 +1,2 @@
DATABASE_URL="postgres://USERNAME:PASSWORD@HOST:PORT/DATABASE"
CDN_URL="http://DOMAIN.TLD/FOLDER"

View file

@ -1,4 +1,6 @@
// https://nuxt.com/docs/api/configuration/nuxt-config
import "dotenv/config";
export default defineNuxtConfig({
compatibilityDate: "2024-11-01",
devtools: { enabled: true },
@ -10,7 +12,7 @@ export default defineNuxtConfig({
},
runtimeConfig: {
public: {
cdn_url: "http://pj.netman.ovh/",
cdn_url: process.env.CDN_URL,
},
},
});