0

nuxt:^2.14.6
@nuxt/内容:^1.12.0

你好,

我目前正在开发具有 SSR 模式的 nuxt 应用程序。我正在使用@nuxt/content模块来显示保存在content/fr/文件夹中的降价文件。

在我的计算机上本地,一切正常。但是,当我在生产模式下部署原始应用程序(在远程服务器上的Docker 环境中运行)时,我收到一个404 Not Found错误,如下所示:

> POST https://test.oiseauxdefrance.org/_content/fr/what-is-ODF-project/description
message "/fr/what-is-ODF-project/description not found"

有没有人遇到过这个问题?有什么帮助解决这个问题吗?

谢谢 !

解决方案

您需要content在 Dockerfile 中添加该文件夹:

COPY --from=builder /app/content ./content/
4

0 回答 0