Skip to content

Commit c16f6ce

Browse files
Merge branch 'main' into tn/data-redirect
2 parents 25af748 + 89904cb commit c16f6ce

File tree

6 files changed

+66
-53
lines changed

6 files changed

+66
-53
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"packages/runtime": "4.32.0",
2+
"packages/runtime": "4.32.2",
33
"packages/next": "1.4.4"
44
}

package-lock.json

Lines changed: 46 additions & 46 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"@babel/preset-env": "^7.15.8",
5353
"@babel/preset-typescript": "^7.16.0",
5454
"@delucis/if-env": "^1.1.2",
55-
"@netlify/build": "^29.6.8",
55+
"@netlify/build": "^29.6.9",
5656
"@netlify/eslint-config-node": "^7.0.1",
5757
"@testing-library/cypress": "^8.0.1",
5858
"@types/fs-extra": "^9.0.13",

packages/runtime/CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# Changelog
22

3+
## [4.32.2](https://github.com/netlify/next-runtime/compare/plugin-nextjs-v4.32.1...plugin-nextjs-v4.32.2) (2023-03-14)
4+
5+
6+
### Bug Fixes
7+
8+
* make error message matching more generic ([#1988](https://github.com/netlify/next-runtime/issues/1988)) ([cfc8e96](https://github.com/netlify/next-runtime/commit/cfc8e966c90490e5760e192c1aef243f5f2c3aa6))
9+
10+
## [4.32.1](https://github.com/netlify/next-runtime/compare/plugin-nextjs-v4.32.0...plugin-nextjs-v4.32.1) (2023-03-13)
11+
12+
13+
### Bug Fixes
14+
15+
* use the same id for importing and checking error ([#1984](https://github.com/netlify/next-runtime/issues/1984)) ([62e2efe](https://github.com/netlify/next-runtime/commit/62e2efe02a01c55a486070fceb7538ed466629c1))
16+
317
## [4.32.0](https://github.com/netlify/next-runtime/compare/plugin-nextjs-v4.31.0...plugin-nextjs-v4.32.0) (2023-03-13)
418

519

packages/runtime/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@netlify/plugin-nextjs",
3-
"version": "4.32.0",
3+
"version": "4.32.2",
44
"description": "Run Next.js seamlessly on Netlify",
55
"main": "index.js",
66
"files": [
@@ -36,7 +36,7 @@
3636
},
3737
"devDependencies": {
3838
"@delucis/if-env": "^1.1.2",
39-
"@netlify/build": "^29.6.8",
39+
"@netlify/build": "^29.6.9",
4040
"@types/fs-extra": "^9.0.13",
4141
"@types/jest": "^27.4.1",
4242
"@types/merge-stream": "^1.1.2",

packages/runtime/src/templates/edge/next-dev.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,10 @@ const handler = async (req, context) => {
3535
try {
3636
// We need to cache-bust the import because otherwise it will claim it
3737
// doesn't exist if the user creates it after the server starts
38-
const nextMiddleware = await import(`../../middleware.js#${idx++}`)
38+
const nextMiddleware = await import(`../../middleware.js#${++idx}`)
3939
middleware = nextMiddleware.middleware
4040
} catch (importError) {
41-
// Error message is `Module not found "file://<path>/middleware.js#123456".` in Deno
42-
if (importError.code === 'ERR_MODULE_NOT_FOUND' && importError.message.includes(`middleware.js#${idx}`)) {
41+
if (importError.code === 'ERR_MODULE_NOT_FOUND' && importError.message.includes(`middleware.js`)) {
4342
// No middleware, so we silently return
4443
return
4544
}

0 commit comments

Comments
 (0)