我想要的是用戶輸入https://www.example.com/test,用戶獲取 NextJS 動態路由的內容/test/index.js。 這在本地有效。會發生什么用戶輸入https://www.example.com/test,用戶獲取根頁面(index.js)的內容。瀏覽器仍然顯示https://www.example.com/test但它不是/test/index.js. 這僅出現在生產中。
NextJS 在生產環境中調用動態頁面重定向到 root
炎炎設計
2023-05-25 17:10:10