Skip to content

Commit

Permalink
Merge pull request #293 from bcgov/bugfix/storybook-build-needs-vite-…
Browse files Browse the repository at this point in the history
…config

Bugfix: Provide Storybook build step with Vite config in Dockerfile
  • Loading branch information
ty2k authored Mar 8, 2024
2 parents 9eba1f5 + 095565a commit edec660
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/react-components/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ const config: StorybookConfig = {
],
framework: {
name: "@storybook/react-vite",
options: {},
options: {
builder: {
viteConfigPath: "vite.config.ts",
},
strictMode: false,
},
},
};
export default config;
1 change: 1 addition & 0 deletions packages/react-components/Dockerfile.storybook
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ FROM node:lts-alpine as build-stage
# Copy package.json and package-lock.json
WORKDIR /app
COPY package.json .
COPY vite.config.ts .

# Print npm config
RUN npm config list
Expand Down

0 comments on commit edec660

Please sign in to comment.