Skip to content

Commit

Permalink
Add docs for publish-storybook-config task
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtimbrook committed Apr 3, 2024
1 parent bc09a0e commit 3c7af3c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,14 @@ You can pass the option `--force` to automatically overwrite existing documenati

- `--o, --output-dir` - the directory where to store built files relative to your `public` directory

## Publish Storybook Config

There may be times when you need to publish the storybook config files to your application directory (eg. changing Storybook versions). This copies the `.storybook` directory to your application root directory and updates the launch and publish tasks to use this directory for any Storybook configuration.

```bash
php artisan blast:publish-storybook-config
```

## Troubleshooting

If you see a `Failed to fetch` message when viewing your stories you will need to go to the path that Storybook is trying to load (open dev tools > network and right click the failed path and open in a new tab) and debug there. Any php errors or `dd` will trigger the `Failed to fetch` message.
Expand Down

0 comments on commit 3c7af3c

Please # to comment.