Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit eb795e8

Browse files
committed
chore(site): set server.allowedHosts in storybook config to .coder
1 parent fb0e7a2 commit eb795e8

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)