fix: 스토리북 "Failed to fetch dynamically imported module" 에러 해결
This commit is contained in:
@@ -34,12 +34,21 @@ const config: StorybookConfig = {
|
||||
AUTH_USER_ID: JSON.stringify(process.env.AUTH_USER_ID || "token-id"),
|
||||
},
|
||||
};
|
||||
|
||||
config.optimizeDeps = {
|
||||
...config.optimizeDeps,
|
||||
include: ["react", "react-dom", "@storybook/react"],
|
||||
exclude: ["@storybook/react-vite"],
|
||||
};
|
||||
|
||||
config.plugins?.push(
|
||||
tsconfigPaths({
|
||||
projects: [path.resolve(path.dirname(__dirname), "tsconfig.json")],
|
||||
}),
|
||||
);
|
||||
|
||||
config.server = {
|
||||
...config.server,
|
||||
proxy: {
|
||||
"/server": {
|
||||
target: process.env.SERVER_API_URL,
|
||||
|
||||
Reference in New Issue
Block a user