Skip to content

Add server configuration options #89

@rudolfbyker

Description

@rudolfbyker

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions