aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/examples/design-system/apps/docs/.storybook/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'examples/design-system/apps/docs/.storybook/main.js')
-rw-r--r--examples/design-system/apps/docs/.storybook/main.js27
1 files changed, 27 insertions, 0 deletions
diff --git a/examples/design-system/apps/docs/.storybook/main.js b/examples/design-system/apps/docs/.storybook/main.js
new file mode 100644
index 0000000..13b0e8a
--- /dev/null
+++ b/examples/design-system/apps/docs/.storybook/main.js
@@ -0,0 +1,27 @@
+const path = require("path");
+
+module.exports = {
+ stories: ["../stories/**/*.stories.mdx", "../stories/**/*.stories.tsx"],
+ addons: ["@storybook/addon-links", "@storybook/addon-essentials"],
+ framework: "@storybook/react",
+ core: {
+ builder: "@storybook/builder-vite",
+ },
+ async viteFinal(config, { configType }) {
+ // customize the Vite config here
+ return {
+ ...config,
+ resolve: {
+ alias: [
+ {
+ find: "@acme/core",
+ replacement: path.resolve(
+ __dirname,
+ "../../../packages/acme-core/"
+ ),
+ },
+ ],
+ },
+ };
+ },
+};