Skip to content

Commit bc57137

Browse files
committed
chore: use plugin wrapper
1 parent aaac07a commit bc57137

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

demos/middleware/netlify.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ ignore = "if [ $CACHED_COMMIT_REF == $COMMIT_REF ]; then (exit 1); else git diff
66
[build.environment]
77
NEXT_USE_NETLIFY_EDGE = "true"
88

9-
# [[plugins]]
10-
# package = "@netlify/plugin-nextjs"
9+
[[plugins]]
10+
package = "../plugin-wrapper/"
11+
1112
# This is a fake plugin, that makes it run npm install
1213
[[plugins]]
1314
package = "@netlify/plugin-local-install-core"
@@ -17,13 +18,12 @@ included_files = [
1718
"!node_modules/sharp/vendor/8.12.2/darwin-*/**/*",
1819
"!node_modules/sharp/build/Release/sharp-darwin-*"
1920
]
20-
2121
# [dev]
2222
# framework = "#static"
23-
[[redirects]]
24-
from = "/_next/static/*"
25-
to = "/static/:splat"
26-
status = 200
23+
# [[redirects]]
24+
# from = "/_next/static/*"
25+
# to = "/static/:splat"
26+
# status = 200
2727
# [[redirects]]
2828
# from = "/*"
2929
# to = "/.netlify/functions/___netlify-handler"

packages/runtime/src/helpers/files.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,6 @@ export const patchNextFiles = async (root: string): Promise<void> => {
377377
}
378378

379379
export const unpatchFile = async (file: string): Promise<void> => {
380-
return
381380
const origFile = `${file}.orig`
382381
if (existsSync(origFile)) {
383382
await move(origFile, file, { overwrite: true })

0 commit comments

Comments
 (0)