Fix typo.

This commit is contained in:
Dillon Kearns 2021-12-15 15:44:48 -08:00
parent 7a57c331bc
commit a0f34bfa19

View File

@ -16,10 +16,10 @@ async function run({ renderFunctionFilePath, routePatterns }) {
routePatterns
.filter(isServerSide)
.map((route) => {
if (route.pathPattern === "prerender-with-fallback") {
return `${route.pathPattern} /.netlify/functions/render 200`;
if (route.kind === "prerender-with-fallback") {
return `${route.kind} /.netlify/functions/render 200`;
} else {
return `${route.pathPattern} /.netlify/functions/server-render 200`;
return `${route.kind} /.netlify/functions/server-render 200`;
}
})
.join("\n") + "\n";