-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NEX-25: Update to next-drupal 1.6.0, next 1.6.0 and next.js 13 #28
Conversation
}, | ||
webpackFinal: async (config) => { | ||
config.resolve.plugins = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This config and the next are taken from https://theodorusclarence.com/blog/nextjs-storybook-tailwind
builder: "@storybook/builder-webpack5", | ||
}, | ||
webpackFinal: async (config) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one will make storybook recognize paths like "components/somecomponent", taken from storybookjs/storybook#14087 (comment)
@@ -1,3 +1,5 @@ | |||
import "../styles/globals.css"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -6,3 +6,5 @@ label: 'Next.js frontend' | |||
base_url: 'http://localhost:3000' | |||
preview_url: 'http://localhost:3000/api/preview' | |||
preview_secret: null | |||
revalidate_url: 'http://localhost:3000/api/revalidate' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This configuration is for now empty, I have made a new story to actually activate this functionality: https://wunder.atlassian.net/browse/NEX-26
*/ | ||
config.resolve.roots = [ | ||
path.resolve(__dirname, "../public"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI: No need to change anything, but Storybook has staticDirs config that could be used for this too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything seems to work after these updates/fixes 👍
NEX-25: Update to next-drupal 1.6.0, next 1.6.0 and next.js 13
Link to ticket: https://wunder.atlassian.net/browse/NEX-25
Changes proposed in this PR:
How to test: