feat(config): phase 7 — drop /ims basePath, update all hardcoded paths, refresh env spec

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-07-23 22:27:46 +08:00
co-authored by Claude Sonnet 4.6
parent d785d86636
commit 9d047e168f
18 changed files with 45 additions and 37 deletions
+1 -1
View File
@@ -153,7 +153,7 @@ export function SiteZoneManager({ sites }: Props) {
<span>{z.name}</span>
<div className="flex items-center gap-3">
<a
href={`/ims/report?zone=${z.qr_code_token}`}
href={`/report?zone=${z.qr_code_token}`}
target="_blank"
className="text-xs text-blue-600 hover:underline"
>
+1 -1
View File
@@ -127,7 +127,7 @@ export function TruckManager({ trucks }: Props) {
</div>
<div className="flex items-center gap-3">
<a
href={`/ims/report?truck_id=${tk.id}`}
href={`/report?truck_id=${tk.id}`}
target="_blank"
className="text-xs text-blue-600 hover:underline"
>
+1 -1
View File
@@ -51,7 +51,7 @@ export function UserManager({ users, sites }: Props) {
const deleteUser = async (id: string) => {
setBusyId(id)
setError(null)
const res = await fetch(`/ims/api/admin/users?id=${encodeURIComponent(id)}`, { method: 'DELETE' })
const res = await fetch(`/api/admin/users?id=${encodeURIComponent(id)}`, { method: 'DELETE' })
setBusyId(null)
setConfirmDeleteId(null)
if (!res.ok) {