Support sub-path deploy via NEXT_PUBLIC_BASE_PATH (loma.chat/pagiva)

Adds basePath config, withBase/appUrl helpers, base-path-aware cookies,
OAuth redirects, manifest, service worker and cron runner.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Loma Bot Ops
2026-11-22 16:48:42 +07:00
parent 9d5a029fa5
commit 4a673ebb28
38 changed files with 130 additions and 57 deletions
+2 -1
View File
@@ -1,3 +1,4 @@
import { withBase } from "@/lib/base-path";
import type { Metadata, Viewport } from "next";
import localFont from "next/font/local";
import { ServiceWorker } from "@/components/ServiceWorker";
@@ -17,7 +18,7 @@ export const metadata: Metadata = {
description: "วางแผน อนุมัติ และเผยแพร่โพสต์ของเพจ Facebook และ Instagram ในพื้นที่ทำงานเดียว",
applicationName: "จัดการเพจ",
appleWebApp: { capable: true, title: "จัดการเพจ", statusBarStyle: "default" },
icons: { icon: "/icons/192", apple: "/icons/apple" },
icons: { icon: withBase("/icons/192"), apple: withBase("/icons/apple") },
formatDetection: { telephone: false },
};