admin管理员组文章数量:1315789
I am writing a nextjs
application. I need to launch it with https
because the crypto
module requires a secureContext
. I have nginx
setup with https
to proxy requests to the nextjs
app as https
.
I have tried adding --experimental-https
in my packages.json
to the next start
, but this gives the error:
error: unknown option '--experimental-https'
This flag only seems to work in dev
mode.
I am writing a nextjs
application. I need to launch it with https
because the crypto
module requires a secureContext
. I have nginx
setup with https
to proxy requests to the nextjs
app as https
.
I have tried adding --experimental-https
in my packages.json
to the next start
, but this gives the error:
error: unknown option '--experimental-https'
This flag only seems to work in dev
mode.
1 Answer
Reset to default 0As long as your webserver handles https
there is no need to make any next js modification to support it. As the error states, there is no --experimental-https
option for next start
本文标签: nextjsHow do I launch nextjs app with https in productionStack Overflow
版权声明:本文标题:next.js - How do I launch nextjs app with https in production? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741991683a2409232.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论