Skip to content

Commit d0c6c73

Browse files
authored
Merge pull request #1557 from thunderstore-io/09-30-dynamically_resolve_allowedhosts_for_local_dev_envs
Dynamically resolve allowedHosts for local dev envs
2 parents bbdc5da + 15c1c7c commit d0c6c73

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

apps/cyberstorm-remix/.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ VITE_COOKIE_DOMAIN=
1111
VITE_AUTH_BASE_URL=
1212
VITE_AUTH_RETURN_URL=
1313
VITE_CLIENT_SENTRY_DSN=
14+
__VITE_ADDITIONAL_SERVER_ALLOWED_HOSTS=

apps/cyberstorm-remix/vite.config.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,7 @@ export default defineConfig({
1010
// https://vitejs.dev/config/server-options.html#server-watch
1111
watch: { usePolling: true, interval: 500 },
1212
hmr: { path: "/react-router" },
13-
allowedHosts: [
14-
// ".thunderstore.temp",
15-
".thunderstore.dev",
16-
".thunderstore.io",
17-
],
13+
allowedHosts: [".thunderstore.dev", ".thunderstore.io"],
1814
},
1915
plugins: [
2016
reactRouter(),

0 commit comments

Comments
 (0)