Skip to content

Commit

Permalink
fix: serialize route pattern for Netlify edge
Browse files Browse the repository at this point in the history
Co-authored-by: Jackie Macharia <jackiewmacharia>
  • Loading branch information
bholmesdev committed Nov 18, 2022
1 parent 3d784f8 commit ac46a0d
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ async function createEdgeManifest(routes: RouteData[], entryFile: string, dir: U
path: route.pathname,
});
} else {
console.log({
og: route.pattern.source.toString(),
new: route.pattern.source.replace(/\\\//g, '/').toString(),
});
functions.push({
function: entryFile,
// Make route pattern serializable to match expected
Expand Down

0 comments on commit ac46a0d

Please sign in to comment.