Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add server configuration options #89

Open
rudolfbyker opened this issue Feb 26, 2020 · 1 comment
Open

Add server configuration options #89

rudolfbyker opened this issue Feb 26, 2020 · 1 comment

Comments

@rudolfbyker
Copy link

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.

@micru
Copy link

micru commented Jul 7, 2021

Would be really great to be able to pass Server-Options as suggested here! Unfortunately we also have to drop this plugin as we need to pass Options to the Server (Proxy settings). To bad :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants