Skip to content

Commit 19c9de0

Browse files
committed
fix: restructure runtime configuration for development and production environments
1 parent edb1e55 commit 19c9de0

1 file changed

Lines changed: 16 additions & 6 deletions

File tree

nuxt.config.ts

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,22 @@ export default defineNuxtConfig({
99
"@nuxthq/studio",
1010
],
1111

12+
$development: {
13+
runtimeConfig: {
14+
public: {
15+
remoteUrl: "http://localhost:3000",
16+
},
17+
},
18+
},
19+
20+
$production: {
21+
runtimeConfig: {
22+
public: {
23+
remoteUrl: "https://ftwa.mathix.dev",
24+
},
25+
},
26+
},
27+
1228
devtools: { enabled: true },
1329

1430
site: {
@@ -18,12 +34,6 @@ export default defineNuxtConfig({
1834
defaultLocale: "en",
1935
},
2036

21-
runtimeConfig: {
22-
public: {
23-
remoteUrl: "http://localhost:3000",
24-
},
25-
},
26-
2737
future: { compatibilityVersion: 4 },
2838
compatibilityDate: "2024-10-08",
2939

0 commit comments

Comments
 (0)