Skip to content

Commit f4f6629

Browse files
committed
allowedHosts
1 parent 78160f9 commit f4f6629

File tree

3 files changed

+373
-173
lines changed

3 files changed

+373
-173
lines changed

frontend/nuxt.config.ts

+16
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@ const routeRulesProxy = () => {
3030
}
3131
}
3232

33+
34+
let frontend_host = 'localhost'
35+
36+
if ('CUPCAKE_FRONTEND' in process.env && process.env.CUPCAKE_FRONTEND !== undefined) {
37+
frontend_host = process.env.CUPCAKE_FRONTEND
38+
}
39+
40+
3341
// https://nuxt.com/docs/api/configuration/nuxt-config
3442
export default defineNuxtConfig({
3543
compatibilityDate: '2024-04-03',
@@ -41,6 +49,14 @@ export default defineNuxtConfig({
4149
devtools: {enabled: true},
4250
modules: ['vuetify-nuxt-module'],
4351
routeRules: routeRulesProxy(),
52+
vite: {
53+
server: {
54+
allowedHosts: [
55+
'maximum-whale-singularly.ngrok-free.app',
56+
frontend_host
57+
]
58+
}
59+
},
4460
vuetify: {
4561
vuetifyOptions: {
4662
theme: {

0 commit comments

Comments
 (0)