mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
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:
@@ -35,6 +35,7 @@ module.exports = {
|
||||
}),
|
||||
);
|
||||
}
|
||||
config.server.allowedHosts = [".coder"];
|
||||
return config;
|
||||
},
|
||||
};
|
||||
|
||||
@@ -116,7 +116,7 @@ export default defineConfig({
|
||||
secure: process.env.NODE_ENV === "production",
|
||||
},
|
||||
},
|
||||
allowedHosts: true,
|
||||
allowedHosts: [".coder"],
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
|
||||
Reference in New Issue
Block a user