From eb795e838c4ccb0fbb49fe900206d688d6fb9fd6 Mon Sep 17 00:00:00 2001 From: Ethan Dickson Date: Thu, 26 Jun 2025 06:47:14 +0000 Subject: [PATCH] chore(site): set `server.allowedHosts` in storybook config to `.coder` --- site/.storybook/main.js | 1 + site/vite.config.mts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/site/.storybook/main.js b/site/.storybook/main.js index 253733f9ee053..0f3bf46e3a0b7 100644 --- a/site/.storybook/main.js +++ b/site/.storybook/main.js @@ -35,6 +35,7 @@ module.exports = { }), ); } + config.server.allowedHosts = [".coder"]; return config; }, }; diff --git a/site/vite.config.mts b/site/vite.config.mts index b2942d903dd61..d386499e50ed0 100644 --- a/site/vite.config.mts +++ b/site/vite.config.mts @@ -116,7 +116,7 @@ export default defineConfig({ secure: process.env.NODE_ENV === "production", }, }, - allowedHosts: true, + allowedHosts: [".coder"], }, resolve: { alias: {