Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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`