Replies: 1 comment
-
Hey there, Interesting case. I am affraid that there is no built in functionality that would achieve it for you with a single boolean value :( But, I think you could disable or enable generating headers on the nitro prerender hook like following: nitro.hooks.hook('prerender:done', () => {}) You can also write your plugin similarly to how it was done here to have access to the headers in prerender (in this case it this mainly the CSP headers but in your case it may be the basic auth headers or configuration in general) Let me know if that helped :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey! 👋 Is there a way to either send auth headers for prerender requests at build time, or is it possible to disable basic auth at build time, which is configured via nuxt-security ? I want to prerender some routes, but I want to deploy configured basic auth for the application.
This is my nuxt.config.js at the moment, which works, but it also enables basic auth at build time:
Thanks! :)
Beta Was this translation helpful? Give feedback.
All reactions