尝试从我的 NEXTJS 站点访问 URL 时出错
我有以下问题。我有一个使用 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 技术交流群。

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