Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions dotcom-rendering/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ export default defineMain({
// See: https://storybook.js.org/docs/react/configure/environment-variables
CI: 'true',
}),
core: {
allowedHosts: ['storybook.thegulocal.com'],
},

framework: {
name: '@storybook/react-webpack5',
Expand Down
6 changes: 6 additions & 0 deletions dotcom-rendering/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,14 @@ storybook-dev: clear clean-dist install
$(call log, "starting Storybook DEV server")
@pnpm storybook

storybook-dev-proxy: clear clean-dist install
$(call log, "starting Storybook DEV reverse proxy server")
@pnpm storybook-proxy

storybook: storybook-dev

storybook-proxy: storybook-dev-proxy

# tests #####################################

playwright-run:
Expand Down
1 change: 1 addition & 0 deletions dotcom-rendering/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"playwright:run": "playwright test",
"unused-exports": "pnpm ts-unused-exports ./tsconfig.json --ignoreFiles='(/(fixtures|__mocks__)/|.+\\.(stories|mocks))' --exitWithCount",
"storybook": "storybook dev -p 4002",
"storybook-proxy": "storybook dev -p 4002 --host storybook.thegulocal.com",
"build-storybook": "storybook build"
},
"dependencies": {
Expand Down
Loading