diff --git a/.env.template b/.env.template index 579418b87..03ee646f3 100644 --- a/.env.template +++ b/.env.template @@ -5,4 +5,5 @@ CYPRESS_APP_URL=https://app.lago.dev GOCARDLESS_CLIENT_ID=__YOUR_GOCARDLESS_CLIENT_ID__ GOCARDLESS_CLIENT_SECRET=__YOUR_GOCARDLESS_SECRET__ LAGO_OAUTH_PROXY_URL=https://proxy.lago.dev -SENTRY_DSN=__YOUR_SENTRY_DSN__ \ No newline at end of file +SENTRY_DSN=__YOUR_SENTRY_DSN__ +VITE_ALLOWED_HOSTS=app.lago.dev \ No newline at end of file diff --git a/vite.config.ts b/vite.config.ts index c4bea386b..dec605a80 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -69,6 +69,7 @@ export default defineConfig(({ mode }) => { LAGO_DISABLE_SIGNUP: JSON.stringify(env.LAGO_DISABLE_SIGNUP), NANGO_PUBLIC_KEY: JSON.stringify(env.NANGO_PUBLIC_KEY), SENTRY_DSN: JSON.stringify(env.SENTRY_DSN), + VITE_ALLOWED_HOSTS: JSON.stringify(env.VITE_ALLOWED_HOSTS), }, resolve: { alias: { @@ -81,6 +82,7 @@ export default defineConfig(({ mode }) => { port, host: true, strictPort: true, + allowedHosts: env.VITE_ALLOWED_HOSTS.split(','), }, preview: { port,