Skip to content

Commit 6e0da3d

Browse files
committed
chore: other fixes from other PRs
1 parent 4ba021e commit 6e0da3d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/runtime/src/helpers/matchers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export const stripLookahead = (regex: string) => {
88
}
99
try {
1010
// Parse the regexp into an AST
11-
const re = transform(`/${regex}/`, {
11+
const re = transform(new RegExp(regex), {
1212
Assertion(path) {
1313
// Remove the lookahead
1414
if (path.node.kind === 'Lookahead') {

packages/runtime/src/templates/getHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ const makeHandler = (conf: NextConfig, app, pageRoot, staticManifest: Array<[str
8686
port,
8787
},
8888
{
89-
revalidateToken: customContext.odb_refresh_hooks,
89+
revalidateToken: customContext?.odb_refresh_hooks,
9090
},
9191
)
9292
const requestHandler = nextServer.getRequestHandler()

0 commit comments

Comments
 (0)