Skip to content

Commit bdf0f1b

Browse files
authored
fix(preview-server): support for the latest Next.js version (#2938)
1 parent 0fea159 commit bdf0f1b

File tree

4 files changed

+214
-295
lines changed

4 files changed

+214
-295
lines changed

.changeset/tidy-knives-sniff.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@react-email/preview-server": patch
3+
---
4+
5+
update to latest Next.js

packages/preview-server/.npmignore

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.react-email
2-
./emails
3-
./emails/static
4-
node_modules
2+
/emails
3+
/emails/static
4+
# It's important that only the root node_modules is ignored, since we're also publishing the node_modules that's "bundled" in with the built preview server
5+
/node_modules
56
.turbo

packages/preview-server/package.json

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,22 @@
1212
"test:watch": "cross-env NODE_OPTIONS=\"--experimental-vm-modules --disable-warning=ExperimentalWarning\" vitest"
1313
},
1414
"main": "./index.mjs",
15+
"files": [
16+
"jsx-runtime",
17+
"scripts",
18+
"src",
19+
"index.mjs",
20+
"license.md",
21+
"next.config.mjs",
22+
"package.json",
23+
"postcss.config.js",
24+
"readme.md",
25+
"tsconfig.json",
26+
".next/**/*"
27+
],
1528
"dependencies": {
16-
"next": "16.0.11"
29+
"esbuild": "0.25.10",
30+
"next": "16.1.6"
1731
},
1832
"devDependencies": {
1933
"@babel/core": "7.26.10",
@@ -56,7 +70,6 @@
5670
"clsx": "2.1.1",
5771
"colorjs.io": "0.5.2",
5872
"cross-env": "^10.1.0",
59-
"esbuild": "0.25.10",
6073
"framer-motion": "12.23.22",
6174
"log-symbols": "4.1.0",
6275
"module-punycode": "npm:punycode@2.3.1",

0 commit comments

Comments
 (0)