Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9ab9c52

Browse files
chore(site): setserver.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 parent05f6d69 commit9ab9c52

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
returnconfig;
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)

[8]ページ先頭

©2009-2025 Movatter.jp