chore(site): set server.allowedHosts in storybook config to .coder (#18598)

This lets you browse storybook using a Coder Desktop hostname (i.e. `workspace.coder:6006`). The default configuration (including `localhost`) will still work.
This commit is contained in:
Ethan
2025-06-27 12:59:58 +10:00
committed by GitHub
parent 05f6d69455
commit 9ab9c52de8
2 changed files with 2 additions and 1 deletions

View File

@ -35,6 +35,7 @@ module.exports = {
}), }),
); );
} }
config.server.allowedHosts = [".coder"];
return config; return config;
}, },
}; };

View File

@ -116,7 +116,7 @@ export default defineConfig({
secure: process.env.NODE_ENV === "production", secure: process.env.NODE_ENV === "production",
}, },
}, },
allowedHosts: true, allowedHosts: [".coder"],
}, },
resolve: { resolve: {
alias: { alias: {