Initial commit: page-manager Next.js app with Coolify deploy support
Replace Vercel-specific infra (Cron, Blob) with self-hosted equivalents for deployment to Coolify: in-container cron scheduler (scripts/cron-runner.mjs) and disk-based upload storage served via /api/uploads/[...path]. Add Dockerfile, .dockerignore, and /api/health for container health checks. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
import type { Metadata, Viewport } from "next";
|
||||
import { Anuphan } from "next/font/google";
|
||||
import { ServiceWorker } from "@/components/ServiceWorker";
|
||||
import "./globals.css";
|
||||
|
||||
const anuphan = Anuphan({
|
||||
subsets: ["thai", "latin"],
|
||||
weight: ["400", "500", "600", "700"],
|
||||
variable: "--font-anuphan",
|
||||
display: "swap",
|
||||
});
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: { default: "ระบบจัดการเพจ", template: "%s · จัดการเพจ" },
|
||||
description: "วางแผน อนุมัติ และเผยแพร่โพสต์ของเพจ Facebook และ Instagram ในพื้นที่ทำงานเดียว",
|
||||
applicationName: "จัดการเพจ",
|
||||
appleWebApp: { capable: true, title: "จัดการเพจ", statusBarStyle: "default" },
|
||||
icons: { icon: "/icons/192", apple: "/icons/apple" },
|
||||
formatDetection: { telephone: false },
|
||||
};
|
||||
|
||||
export const viewport: Viewport = {
|
||||
width: "device-width",
|
||||
initialScale: 1,
|
||||
viewportFit: "cover",
|
||||
themeColor: "#e0f2fe",
|
||||
};
|
||||
|
||||
export default function RootLayout({ children }: { children: React.ReactNode }) {
|
||||
return (
|
||||
<html lang="th" className={anuphan.variable}>
|
||||
{/* Browser extensions (e.g. Grammarly) inject attributes on <body> before hydration. */}
|
||||
<body suppressHydrationWarning>
|
||||
{children}
|
||||
<ServiceWorker />
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user