Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/terrymun/nx-nextjs-storybook-test
An example repo to demonstrate that @nrwl/storybook fails to read from next.config.js
https://github.com/terrymun/nx-nextjs-storybook-test
Last synced: 10 days ago
JSON representation
An example repo to demonstrate that @nrwl/storybook fails to read from next.config.js
- Host: GitHub
- URL: https://github.com/terrymun/nx-nextjs-storybook-test
- Owner: terrymun
- Created: 2023-01-27T08:13:13.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-30T16:46:07.000Z (almost 2 years ago)
- Last Synced: 2024-12-31T11:54:25.885Z (10 days ago)
- Language: CSS
- Size: 551 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NxNextjsStorybookTest
✨ **This workspace has been generated by [Nx, a Smart, fast and extensible build system.](https://nx.dev)** ✨
This repo is created as a proof-of-concept for the issue reported in https://github.com/nrwl/nx/issues/14656
## Serve the Next.js site
Run `nx run next-js:serve:development` for a dev server. Notice that the Next.js `` component correctly loads a remote image that is allowed via the `next.config.js` settings (specifically the `images.remotePatterns` array).
## Serve the storybook
Run `nx run my-lib:storybook`. Notice that the same Next.js `` component used will now throw an error:
> Invalid src prop (https://via.placeholder.com/400x350) on `next/image`, hostname "via.placeholder.com" is not configured under images in your `next.config.js`