Skip to content

Commit 3cbdac6

Browse files
josephfuscoCopilot
andauthored
chore: Add Next.js 16 support to examples and blocks package (#2451)
* chore: Add Next.js 16 support to examples and blocks package Bumps next to ^16 in tutorial, custom-toolbar, and block-support examples, switches sassOptions.includePaths to loadPaths so WordPress block-style SCSS imports resolve under Next 16, and widens the @faustwp/blocks next peer dependency to allow 16. * fix: align block-support node engine with Next 16 * fix(tutorial-example): use sass loadPaths in Next config --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
1 parent 85d1b14 commit 3cbdac6

10 files changed

Lines changed: 1964 additions & 278 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@faustwp/blocks": patch
3+
---
4+
5+
Widen the `next` peer dependency to allow Next.js 16.

examples/next/block-support/next.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const { createSecureHeaders } = require('next-secure-headers');
77
module.exports = withFaust({
88
reactStrictMode: true,
99
sassOptions: {
10-
includePaths: ['node_modules'],
10+
loadPaths: ['node_modules'],
1111
},
1212
images: {
1313
domains: [getWpHostname()],

0 commit comments

Comments
 (0)