尝试从我的 NEXTJS 站点访问 URL 时出错

发布于 2025-01-09 11:18:16 字数 274 浏览 2 评论 0原文

我有以下问题。我有一个使用 NextJS 创建的网站,并且在其中创建了一些不同的动态页面。当我尝试从导航栏以外的任何位置访问这些动态页面的 URL 时,或者当我重新加载这些动态页面之一时,就会出现问题:它给我一个 404 屏幕,我不知道到底是什么导致了这种不便。

下一个 Config.js 文件

module.exports = {
  reactStrictMode: true,
  trailingSlash: true,
}

I have the following problem. I have a website that I've created using NextJS and I've created some different dynamic pages into it. The problem occurs when I try to access the URL of those dynamic pages from any place that's not my navbar, or when I reload one of these dynamic pages: it gives me a 404 screen and I don't know exactly what causes this inconvenient.

Next Config.js file

module.exports = {
  reactStrictMode: true,
  trailingSlash: true,
}

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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