NextJS config integration #17259
Unanswered
thomasoreilly
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm currently trying to integrate Storybook to a NextJS project.
I'm trying to figure out how to load in config specified in the
next.config.js
file when running Storybook.I've being trying to use the
next/config
module to set the config within themain.js
to no success.I've created a simple repo with this setup.
You can see here where I declare a public prop. This prob should be accessible within the component, storybook isn't aware of this config file so the prop never gets defined. I have tried to manual load the config in main to no avail.
Any help with this would be greatly appreciated thanks.
Beta Was this translation helpful? Give feedback.
All reactions