-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Description
Is your feature request related to a problem? Please describe.
I need to add server configuration options to prerender-spa-plugin
. I specifically want to configure a proxy.
module.exports = {
plugins: [
...
new PrerenderSPAPlugin({
...
// Server configuration options.
server: {
/* I need to add stuff here! */
},
Describe the solution you'd like
Patch index.js
:
diff --git a/old b/new
index e4e155a..1515509 100644
--- a/old
+++ b/new
@@ -26,6 +26,7 @@ function chain(api, projectOptions) {
const prerenderOptions = {
...paths,
routes: options.renderRoutes,
+ server: options.server,
renderer,
postProcess: renderedRoute => {
const route = renderedRoute.route;
Describe alternatives you've considered
I could not find an alternative, other than dropping this plugin and using https://github.com/chrisvfritz/prerender-spa-plugin directly.
Metadata
Metadata
Assignees
Labels
No labels