Replies: 2 comments 4 replies
-
Hi, @ijjk If you have concern for the security on production, we can simply change it like: const secure = process.env.NODE_ENV === 'development' ? this.nextConfig.devRewriteSecure : true |
Beta Was this translation helpful? Give feedback.
4 replies
-
This is question had solved ? |
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.
-
Mainly for local development, where a site may be served by https (eg valet secure). In this case rewrite fails because of
UNABLE_TO_VERIFY_LEAF_SIGNATURE
even if we haveNODE_TLS_REJECT_UNAUTHORIZED=0
in .env.Setting the
secure
option of the proxy tofalse
solves this.Either we should be able to set it in next.config.js, or it should be automatically set based on the value of
NODE_TLS_REJECT_UNAUTHORIZED
.Beta Was this translation helpful? Give feedback.
All reactions