我如何在生产中使用HTTPS启动NextJS应用?

问题描述 投票:0回答:0
https

启动它,因为

crypto
模块需要一个。我有
secureContext
设置,to
nginx
to to to to to to to
https
app的请求为
nextjs
我尝试在我的
https
中添加
--experimental-https
,但这给出了错误:

packages.json

这个标志似乎仅在
next start
模式下工作。
    
只要您的WebServer处理wange comply不需要进行任何下一个JS修改即可支持它。如错误所述,没有

error: unknown option '--experimental-https'
    

next.js https
最新问题
© www.soinside.com 2019 - 2024. All rights reserved.