quick, minor: cdn_url in env, env->runtimeconfig
This commit is contained in:
parent
cf868f7d65
commit
8b35c0fe12
2 changed files with 5 additions and 2 deletions
|
@ -1 +1,2 @@
|
||||||
DATABASE_URL="postgres://USERNAME:PASSWORD@HOST:PORT/DATABASE"
|
DATABASE_URL="postgres://USERNAME:PASSWORD@HOST:PORT/DATABASE"
|
||||||
|
CDN_URL="http://DOMAIN.TLD/FOLDER"
|
|
@ -1,4 +1,6 @@
|
||||||
// https://nuxt.com/docs/api/configuration/nuxt-config
|
// https://nuxt.com/docs/api/configuration/nuxt-config
|
||||||
|
import "dotenv/config";
|
||||||
|
|
||||||
export default defineNuxtConfig({
|
export default defineNuxtConfig({
|
||||||
compatibilityDate: "2024-11-01",
|
compatibilityDate: "2024-11-01",
|
||||||
devtools: { enabled: true },
|
devtools: { enabled: true },
|
||||||
|
@ -10,7 +12,7 @@ export default defineNuxtConfig({
|
||||||
},
|
},
|
||||||
runtimeConfig: {
|
runtimeConfig: {
|
||||||
public: {
|
public: {
|
||||||
cdn_url: "http://pj.netman.ovh/",
|
cdn_url: process.env.CDN_URL,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue