Skip to content

Commit 9ab9c52

Browse files
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.
1 parent 05f6d69 commit 9ab9c52

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

site/.storybook/main.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ module.exports = {
3535
}),
3636
);
3737
}
38+
config.server.allowedHosts = [".coder"];
3839
return config;
3940
},
4041
};

site/vite.config.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export default defineConfig({
116116
secure: process.env.NODE_ENV === "production",
117117
},
118118
},
119-
allowedHosts: true,
119+
allowedHosts: [".coder"],
120120
},
121121
resolve: {
122122
alias: {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy