mirror of
https://github.com/withastro/astro.git
synced 2025-01-13 22:11:20 -05:00
fix: serialize route pattern for Netlify edge
Co-authored-by: Jackie Macharia <jackiewmacharia>
This commit is contained in:
parent
3d784f85c4
commit
ac46a0d323
1 changed files with 4 additions and 0 deletions
|
@ -57,6 +57,10 @@ async function createEdgeManifest(routes: RouteData[], entryFile: string, dir: U
|
||||||
path: route.pathname,
|
path: route.pathname,
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
console.log({
|
||||||
|
og: route.pattern.source.toString(),
|
||||||
|
new: route.pattern.source.replace(/\\\//g, '/').toString(),
|
||||||
|
});
|
||||||
functions.push({
|
functions.push({
|
||||||
function: entryFile,
|
function: entryFile,
|
||||||
// Make route pattern serializable to match expected
|
// Make route pattern serializable to match expected
|
||||||
|
|
Loading…
Add table
Reference in a new issue