Skip to content

Commit a7f6c85

Browse files
committed
fix: add back rest of matcher
1 parent 0ab27ed commit a7f6c85

File tree

1 file changed

+1
-0
lines changed
  • packages/runtime/src/helpers

1 file changed

+1
-0
lines changed

packages/runtime/src/helpers/edge.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ const writeEdgeFunction = async ({
171171
} else if (nextConfig.i18n) {
172172
matchers.push(
173173
...edgeFunctionDefinition.matchers.map((matcher) => ({
174+
...matcher,
174175
regexp: makeLocaleOptional(matcher.regexp),
175176
})),
176177
)

0 commit comments

Comments
 (0)