Skip to content

Commit

Permalink
bug: define allowedHosts in vite config
Browse files Browse the repository at this point in the history
  • Loading branch information
ansmonjol committed Jan 22, 2025
1 parent e3c11b2 commit cc5b99f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .env.template
Original file line number Diff line number Diff line change
Expand Up @@ -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__
SENTRY_DSN=__YOUR_SENTRY_DSN__
VITE_ALLOWED_HOSTS=app.lago.dev
2 changes: 2 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand All @@ -81,6 +82,7 @@ export default defineConfig(({ mode }) => {
port,
host: true,
strictPort: true,
allowedHosts: env.VITE_ALLOWED_HOSTS.split(','),
},
preview: {
port,
Expand Down

0 comments on commit cc5b99f

Please sign in to comment.