diff --git a/.env.example b/.env.example index cdb253f..997c2d1 100644 --- a/.env.example +++ b/.env.example @@ -1 +1,2 @@ -DATABASE_URL="postgres://USERNAME:PASSWORD@HOST:PORT/DATABASE" \ No newline at end of file +DATABASE_URL="postgres://USERNAME:PASSWORD@HOST:PORT/DATABASE" +CDN_URL="http://DOMAIN.TLD/FOLDER" \ No newline at end of file diff --git a/nuxt.config.ts b/nuxt.config.ts index ca34ca9..3fbdd88 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -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, }, }, });