Skip to content

Commit

Permalink
Merge pull request #74 from etchteam/feature/etch-663-put-the-storybo…
Browse files Browse the repository at this point in the history
…ok-on-a-live-domain

Production deployments
  • Loading branch information
mergify[bot] authored Jul 25, 2024
2 parents 960314b + 2991907 commit 8b8343a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,7 @@ node_modules
dist

# Misc
.DS_Store
.DS_Store

# Storybook build output
storybook-static
10 changes: 9 additions & 1 deletion .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import type { StorybookConfig } from '@storybook/web-components-vite';

const base = process.env.BASE_PATH || '/';

const config: StorybookConfig = {
stories: [
'../components/**/*.mdx',
Expand All @@ -18,7 +20,13 @@ const config: StorybookConfig = {
},
docs: {
autodocs: true
}
},
async viteFinal(config) {
return {
...config,
base,
};
},
};

export default config;

0 comments on commit 8b8343a

Please sign in to comment.