Verified Commit 9dd45060 authored by Agate's avatar Agate 💬

Fixed broken prerendering

parent cf38d865
Pipeline #8707 passed with stages
in 3 minutes and 2 seconds
......@@ -30,15 +30,19 @@ module.exports = {
});
return {
plugins: [
new PrerenderSPAPlugin(
// Absolute path to compiled SPA
path.resolve(__dirname, "dist"),
// List of routes to prerender
finalRoutes,
{
// options
}
)
new PrerenderSPAPlugin({
routes: finalRoutes,
staticDir: path.resolve(__dirname, "dist"),
postProcess(renderedRoute) {
return renderedRoute
},
renderer: new PrerenderSPAPlugin.PuppeteerRenderer({
inject: {},
maxConcurrentRoutes: 16,
// for debugging
// headless: false,
})
})
]
};
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment