如何在应用程序使用的CPANEL上部署nextJS(用于国际化的I18Next)?
我正在尝试在CPANEL文件管理器上使用NextJs部署应用程序构建,我正在使用Next Export Command ,以便我可以使用 index.html files并将其放入CPANEL仪表板上的文件管理器目录 ,但是当我运行该命令(下一个导出
)时,我得到了一个错误。 错误:I18N支持与下一个导出不兼容。有关部署的更多信息,请参见此处:https://nextjs.org/docs/deployment
。
当我遵循链接时,但没有任何有关 i18next 的有用信息。
因此,有没有一种方法可以在cpanel
没有Next Export
上部署我的nextJs应用选择?
I'm trying to deploy an app build with nextjs on cpanel file manager,I'm using next export command so that I can take the index.html file and put it in the file manager directory on cpanel dashboard, but when I run that command (next export
) I got an error saysError: i18n support is not compatible with next export. See here for more info on deploying: https://nextjs.org/docs/deployment
.
when I followed the link but it didn't have any useful info regarding i18next.
SO is there a way to deploy my nextjs app on cpanel
without next export
?, or should I remove i18next
package at all and search for an alternative?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论