如何在应用程序使用的CPANEL上部署nextJS(用于国际化的I18Next)?

发布于 2025-02-08 12:25:48 字数 428 浏览 1 评论 0原文

我正在尝试在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 says
Error: 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文