From 6a6668cf8bda978903a851d57632e7bc3cec5dc0 Mon Sep 17 00:00:00 2001 From: Dillon Kearns Date: Wed, 14 Aug 2019 14:16:28 -0700 Subject: [PATCH] Wait for prerender trigger to pre-render pages. --- generator/src/develop.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/generator/src/develop.js b/generator/src/develop.js index 9904680d..ba1335c1 100644 --- a/generator/src/develop.js +++ b/generator/src/develop.js @@ -61,7 +61,8 @@ function webpackOptions(routes) { // staticDir: "./dist", staticDir: path.join(process.cwd(), "dist"), // Required - Routes to render. - routes: routes + routes: routes, + renderAfterDocumentEvent: "prerender-trigger" }) ], output: {