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 d34b756
Show file tree
Hide file tree
Showing 2 changed files with 3 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
1 change: 1 addition & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ export default defineConfig(({ mode }) => {
port,
host: true,
strictPort: true,
allowedHosts: env.VITE_ALLOWED_HOSTS.split(','),
},
preview: {
port,
Expand Down

0 comments on commit d34b756

Please sign in to comment.