We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59ad25e commit 314f3cbCopy full SHA for 314f3cb
src/helpers/setUpEdgeFunction.js
@@ -54,6 +54,13 @@ const getPrerenderedRoutes = async (outputDir) => {
54
const file = join(outputDir, 'prerendered-routes.json')
55
if (!existsSync(file)) return []
56
const { routes: prerenderedRoutes } = await readJson(file)
57
+
58
+ if (!Array.isArray(prerenderedRoutes)) {
59
+ // Angular@19 changes shape of prerendered-routes from array of strings to object with routes as keys
60
+ return Object.keys(prerenderedRoutes)
61
+ }
62
63
+ // Before Angular@19 prerendered-routes is an array of strings
64
return prerenderedRoutes
65
}
66
0 commit comments