-
fix(config): move root redirect to page and skip slash redirect
All checks were successfulDeploy eCourt Note Web to Server / Validate Database Schema (Drizzle) (push) Successful in 3sDeploy eCourt Note Web to Server / Build Web Docker Image (push) Successful in 50sDeploy eCourt Note Web to Server / Deploy eCourt Note Web to Server (push) Successful in 14sDeploy eCourt Note Web to Server / Notify Deployment Status (push) Successful in 0sreleased this
2026-10-08 11:11:48 +07:00 | 22 commits to dev since this release- เข้า /docedit เดิมใช้ redirects() (Next เติม basePath ให้ source /)
ถอดออกให้ app/page.tsx ที่ root จับ /docedit และ /docedit/ แทน
พร้อมส่งต่อ query เอง เพราะ redirect() ของ next/navigation ไม่แนบ
searchParams ให้อัตโนมัติ (รักษาสัญญาลิงก์ e-Court
/docedit/?fileUrl=&fileId=&typeId= ของ N8) - เพิ่ม skipTrailingSlashRedirect: true ปิด 308 trailing slash
อัตโนมัติของ Next กัน ping-pong กับ rewrite rule ของ IIS ตอน
deploy หลัง proxy - redirects() ใหม่แบบ basePath:false จับเฉพาะ root ของ host (/ แท้)
ส่งตรงไป /docedit/note
Co-Authored-By: Claude Code noreply@anthropic.com
Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
- เข้า /docedit เดิมใช้ redirects() (Next เติม basePath ให้ source /)