api url and environment

This commit is contained in:
Julian Krauser 2024-11-05 18:31:12 +01:00
parent 38385d56d9
commit 3e260c0007
10 changed files with 40 additions and 11 deletions

View file

@ -35,4 +35,21 @@ export default defineNuxtConfig({
prefix: "/api",
version: "v5",
},
runtimeConfig: {
strapi: {
url: process.env.STRAPI_URL ?? "localhost:1337",
},
app: {
title: process.env.APP_TITLE ?? "Feuerwehr",
},
public: {
strapi: {
url: process.env.STRAPI_URL ?? "localhost:1337",
},
app: {
title: process.env.APP_TITLE ?? "Feuerwehr",
},
},
},
});