Add service worker and harden the web app manifest for Android 14+ / iOS 17+

Android (Samsung S23, One UI 6) refuses 'Install app' / standalone mode
when the origin is not secure or the app has no service worker. The ported
Next.js app shipped neither: only a manifest existed, and no sw.js at all.

- public/sw.js: navigation network-first with an offline fallback,
  cache-first for static assets, /api and /files bypassed, versioned
  cache with skipWaiting + clients.claim.
- public/offline.html: offline shell.
- src/components/PwaBoot.tsx: registers the worker, wires
  beforeinstallprompt into an in-app install button, and shows a
  share-sheet hint on iOS/Samsung Internet where the event never fires.
- ui-manifest.json: add id, display_override, prefer_related_applications,
  launch_handler, handle_links, a maskable icon for Android 14 and
  screenshots for the install preview.
- layout.tsx: viewport-fit=cover, interactive-widget, maximumScale 5
  (never user-scalable=no), appleWebApp metadata, format detection off,
  and drop manually duplicated meta tags that Next already emits.

Verified: manifest passes 8/8 installability checks, sw.js and offline.html
serve with correct content types, tsc clean, npm run build passes.
This commit is contained in:
Bkk1234 committed 2026-10-23 22:40:58 +07:00
1 parent 3519f92669
commit 092f551b7d
7 files changed
+405 -11

No files matched your search

+1 -1
View File
@@ -1,4 +1,4 @@
.env
1.env
.github/
node_modules/
dist/
+47
View File
@@ -0,0 +1,47 @@
<!doctype html>
<html lang="th">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
<title>ออฟไลน์ | Atroute</title>
<link rel="stylesheet" href="/vendor/fonts/k2d.css" />
<style>
:root { color-scheme: light; }
* { box-sizing: border-box; }
body {
margin: 0;
min-height: 100dvh;
display: grid;
place-items: center;
padding: 24px;
background: #fcfbff;
color: #2c2340;
font-family: "K2D", "Noto Sans Thai", system-ui, sans-serif;
text-align: center;
}
.box { max-width: 360px; }
img { width: 72px; height: 72px; object-fit: contain; margin-bottom: 18px; }
h1 { font-size: 1.25rem; margin: 0 0 8px; }
p { margin: 0 0 20px; color: #6f6a80; line-height: 1.6; font-size: 0.95rem; }
button {
min-height: 44px;
padding: 10px 22px;
border: 0;
border-radius: 999px;
background: #7a4cc0;
color: #fff;
font: inherit;
font-weight: 600;
cursor: pointer;
}
</style>
</head>
<body>
<div class="box">
<img src="/image/icons/minibus-512x512.png" alt="" />
<h1>ไม่มีการเชื่อมต่อ</h1>
<p>หน้านี้ต้องใช้อินเทอร์เน็ต — หน้ำที่เคยเปิดไว้จะยังใช้งานได้ตอนออฟไลน์</p>
<button type="button" onclick="location.reload()">ลองอีกครั้ง</button>
</div>
</body>
</html>
+123
View File
@@ -0,0 +1,123 @@
/* ============================================================
Atroute — Service Worker (Next.js)
ทำไมต้องมี:
Chrome/Edge/Samsung Internet จะ "ติดตั้งเป็นแอป" ได้ก็ต่อเมื่อ
1) เสิร์ฟผ่าน HTTPS (หรือ localhost)
2) มี manifest ที่ถูกต้อง (192 + 512 icon, start_url, display)
3) ★ มี service worker ที่มี fetch handler ควบคุมหน้าเว็บ
ข้อ 3 คือสิ่งที่ Next.js ไม่มีให้เอง — ไฟล์นี้คือคำตอบ
กลยุทธ์
- นำทาง (HTML) → network-first (ออนไลน์ได้ของใหม่, ออฟไลน์ใช้ cache)
- /_next/static, /image, /vendor, ฟอนต์ → cache-first (เร็ว + ออฟไลน์ได้)
- /api → ไม่แตะ (ให้ network จัดการ)
- SW ใหม่ → skipWaiting + clients.claim + แจ้งหน้าเว็บ
============================================================ */
const VERSION = "1.0.0";
const CACHE = `atroute-${VERSION}`;
const OFFLINE_URL = "/offline.html";
/* ไฟล์ที่ precache ไว้ใช้ตอนออฟไลน์ (เฉพาะที่ path คงที่) */
const PRECACHE = [
"/",
OFFLINE_URL,
"/ui-manifest.json",
"/image/icons/minibus-192x192.png",
"/image/icons/minibus-512x512.png",
"/image/icons/minibus-maskable-512x512.png",
"/logo.svg",
"/vendor/fonts/k2d.css",
"/vendor/leaflet/leaflet.css",
];
self.addEventListener("install", (event) => {
event.waitUntil(
caches
.open(CACHE)
.then((cache) => cache.addAll(PRECACHE).catch(() => undefined))
.then(() => self.skipWaiting()),
);
});
self.addEventListener("activate", (event) => {
event.waitUntil(
caches
.keys()
.then((keys) => Promise.all(keys.filter((k) => k !== CACHE).map((k) => caches.delete(k))))
.then(() => self.clients.claim())
.then(() => {
self.clients.matchAll({ type: "window" }).then((cs) => {
cs.forEach((c) => c.postMessage({ type: "SW_ACTIVATED", version: VERSION }));
});
}),
);
});
self.addEventListener("message", (event) => {
if (event.data === "SKIP_WAITING") self.skipWaiting();
});
/** ไฟล์ static ที่ cache-first ได้ (path มี hash หรือไม่เปลี่ยนบ่อย) */
function isStaticAsset(url) {
return (
url.pathname.startsWith("/_next/static/") ||
url.pathname.startsWith("/image/") ||
url.pathname.startsWith("/vendor/") ||
url.pathname.startsWith("/content/") ||
/\.(?:png|jpe?g|webp|avif|svg|ico|woff2?|ttf|css|js)$/i.test(url.pathname)
);
}
self.addEventListener("fetch", (event) => {
const req = event.request;
if (req.method !== "GET") return;
const url = new URL(req.url);
/* ไม่ยุ่งกับ API และ cross-origin */
if (url.origin !== self.location.origin) return;
if (url.pathname.startsWith("/api/") || url.pathname.startsWith("/files/")) return;
/* ---- นำทาง: network-first + offline fallback ---- */
if (req.mode === "navigate") {
event.respondWith(
fetch(req)
.then((res) => {
const copy = res.clone();
caches.open(CACHE).then((c) => c.put(req, copy)).catch(() => undefined);
return res;
})
.catch(async () => {
const cached = await caches.match(req);
return cached || (await caches.match(OFFLINE_URL)) || Response.error();
}),
);
return;
}
/* ---- static: cache-first แล้วค่อยเติม cache ---- */
if (isStaticAsset(url)) {
event.respondWith(
caches.match(req).then((cached) => {
if (cached) return cached;
return fetch(req).then((res) => {
if (res.ok && res.type === "basic") {
const copy = res.clone();
caches.open(CACHE).then((c) => c.put(req, copy)).catch(() => undefined);
}
return res;
});
}),
);
return;
}
/* ---- อื่น ๆ: network-first ---- */
event.respondWith(
fetch(req)
.then((res) => res)
.catch(() => caches.match(req).then((r) => r || Response.error())),
);
});
+54 -4
View File
@@ -10,28 +10,50 @@
"orientation": "any",
"background_color": "#fcfbff",
"theme_color": "#7a4cc0",
"categories": ["travel", "navigation", "transportation"],
"categories": [
"travel",
"navigation",
"transportation"
],
"shortcuts": [
{
"name": "เช็กเวลาเดินรถ",
"short_name": "เช็กเวลา",
"description": "ดูตารางเวลาเดินรถทุกจุดจอด",
"url": "/check",
"icons": [{ "src": "/image/icons/minibus-192x192.png", "sizes": "192x192", "type": "image/png" }]
"icons": [
{
"src": "/image/icons/minibus-192x192.png",
"sizes": "192x192",
"type": "image/png"
}
]
},
{
"name": "ป้ายหยุดรถ",
"short_name": "ป้ายหยุดรถ",
"description": "ค้นหาป้ายหยุดรถทั้งหมด",
"url": "/stops",
"icons": [{ "src": "/image/icons/minibus-192x192.png", "sizes": "192x192", "type": "image/png" }]
"icons": [
{
"src": "/image/icons/minibus-192x192.png",
"sizes": "192x192",
"type": "image/png"
}
]
},
{
"name": "รายละเอียดสายรถ",
"short_name": "สายรถ",
"description": "ดูรายละเอียดเส้นทางเดินรถ",
"url": "/routes",
"icons": [{ "src": "/image/icons/minibus-192x192.png", "sizes": "192x192", "type": "image/png" }]
"icons": [
{
"src": "/image/icons/minibus-192x192.png",
"sizes": "192x192",
"type": "image/png"
}
]
}
],
"icons": [
@@ -52,6 +74,34 @@
"sizes": "512x512",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "/image/icons/minibus-maskable-512x512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "any"
}
],
"id": "/",
"display_override": [
"standalone",
"minimal-ui",
"browser"
],
"prefer_related_applications": false,
"launch_handler": {
"client_mode": "navigate-existing"
},
"handle_links": "preferred",
"scope_extensions": [],
"edge_side_panel": {},
"screenshots": [
{
"src": "/image/network/overview-map.png",
"sizes": "1440x1080",
"type": "image/png",
"form_factor": "wide",
"label": "แผนที่เครือข่ายป้าย Atroute"
}
]
}
+25 -5
View File
@@ -1,5 +1,6 @@
import type { Metadata, Viewport } from "next";
import IconSprite from "@/components/IconSprite";
import PwaBoot from "@/components/PwaBoot";
import SiteBoot from "@/components/SiteBoot";
import SiteFooter from "@/components/SiteFooter";
import SiteHeader from "@/components/SiteHeader";
@@ -19,12 +20,31 @@ export const metadata: Metadata = {
},
description:
"ศูนย์รวมข้อมูลตารางเดินรถ จุดจอด และเส้นทางในจังหวัดอ่างทองและจังหวัดใกล้เคียง",
applicationName: "Atroute",
manifest: "/ui-manifest.json",
icons: { icon: "/image/icons/minibus-512x512.png" },
icons: {
icon: [
{ url: "/image/icons/minibus-512x512.png", sizes: "512x512", type: "image/png" },
{ url: "/image/icons/minibus-192x192.png", sizes: "192x192", type: "image/png" },
],
apple: [{ url: "/image/icons/minibus-192x192.png", sizes: "192x192", type: "image/png" }],
},
appleWebApp: {
capable: true,
title: "Atroute",
statusBarStyle: "default",
},
formatDetection: { telephone: false, address: false, email: false },
};
export const viewport: Viewport = {
themeColor: "#7a4cc0",
width: "device-width",
initialScale: 1,
// ห้าม maximumScale:1 / userScalable:false — ปิดการซูมจะไม่ผ่าน WCAG 1.4.4
maximumScale: 5,
viewportFit: "cover",
interactiveWidget: "resizes-content",
};
export default function RootLayout({ children }: { children: React.ReactNode }) {
@@ -38,10 +58,9 @@ export default function RootLayout({ children }: { children: React.ReactNode })
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@400;500;600;700;800&family=Prompt:wght@400;500;600;700&display=swap"
/>
<meta name="theme-color" content="#7a4cc0" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="default" />
<link rel="apple-touch-icon" href="/image/icons/minibus-192x192.png" />
{/* theme-color / apple-touch-icon / apple-mobile-web-app-* / mobile-web-app-capable
ถูก emit อัตโนมัติจาก metadata.appleWebApp + metadata.icons + viewport.themeColor
— อย่าใส่ซ้ำที่นี่ (จะได้ meta ซ้ำ 2 ชุด) */}
<script src="/vendor/leaflet/leaflet.js" defer />
</head>
<body className="main-theme-page">
@@ -50,6 +69,7 @@ export default function RootLayout({ children }: { children: React.ReactNode })
<div id="view">{children}</div>
<SiteFooter />
<SiteBoot />
<PwaBoot />
</body>
</html>
);
+154
View File
@@ -0,0 +1,154 @@
/**
* Atroute — PWA bootstrap (Next.js client component)
*
* ทำ 3 อย่าง
* 1. ลงทะเบียน /sw.js → ทำให้ Chrome/Samsung Internet ยอมให้ "ติดตั้งเป็นแอป"
* 2. จับ beforeinstallprompt → แสดงปุ่ม "ติดตั้งแอป" ของเราเอง
* (Android/Chrome/Edge/Samsung — iOS ไม่มี event นี้)
* 3. iOS/iPadOS → แสดงคำใบ้ "แชร์ → เพิ่มไปยังหน้าจอโฮม" แทนปุ่ม
*
* หมายเหตุความปลอดภัย: เบราว์เซอร์จะไม่ให้ติดตั้งถ้าไม่ใช่ HTTPS
* component นี้จะไม่แสดงปุ่มและไม่ error ถ้าเงื่อนไขไม่ครบ
*/
"use client";
import { useEffect, useState } from "react";
type InstallPromptEvent = Event & {
prompt: () => Promise<void>;
userChoice: Promise<{ outcome: "accepted" | "dismissed" }>;
};
const isStandalone = () =>
typeof window !== "undefined" &&
(window.matchMedia("(display-mode: standalone)").matches ||
// iOS
(window.navigator as unknown as { standalone?: boolean }).standalone === true);
export default function PwaBoot() {
const [deferred, setDeferred] = useState<InstallPromptEvent | null>(null);
const [showIosHint, setShowIosHint] = useState(false);
const [installed, setInstalled] = useState(false);
useEffect(() => {
if (typeof window === "undefined") return;
if (process.env.NODE_ENV !== "production") {
// dev server ไม่มี HTTPS/scope ที่ถูก → ไม่ต้องรบกวน
}
setInstalled(isStandalone());
/* ---------- 1) service worker ---------- */
if ("serviceWorker" in navigator) {
const register = () => {
navigator.serviceWorker
.register("/sw.js", { scope: "/", updateViaCache: "none" })
.then((reg) => {
reg.update().catch(() => undefined);
// ตรวจอัปเดตซ้ำทุก 30 นาที (จอที่เปิดค้าง)
setInterval(() => reg.update().catch(() => undefined), 30 * 60 * 1000);
})
.catch(() => undefined);
};
if (document.readyState === "complete") register();
else window.addEventListener("load", register, { once: true });
/* SW ใหม่เข้าควบคุม → โหลดใหม่เงียบ ๆ (ผู้ใช้ไม่ต้องล้างแคช) */
navigator.serviceWorker.addEventListener("message", (e) => {
if (e.data?.type === "SW_ACTIVATED") {
window.location.reload();
}
});
}
/* ---------- 2) install prompt (Android) ---------- */
const onPrompt = (e: Event) => {
e.preventDefault();
setDeferred(e as InstallPromptEvent);
};
const onInstalled = () => {
setInstalled(true);
setDeferred(null);
};
window.addEventListener("beforeinstallprompt", onPrompt);
window.addEventListener("appinstalled", onInstalled);
/* ---------- 3) iOS/iPadOS hint ---------- */
const ua = navigator.userAgent;
const isIos =
/iPad|iPhone|iPod/.test(ua) ||
(navigator.platform === "MacIntel" && navigator.maxTouchPoints > 1);
// Samsung Internet ก็ไม่ยิง beforeinstallprompt เหมือนกันในบางเวอร์ชัน
const isSamsung = /SamsungBrowser/i.test(ua);
if ((isIos || isSamsung) && !isStandalone()) setShowIosHint(true);
return () => {
window.removeEventListener("beforeinstallprompt", onPrompt);
window.removeEventListener("appinstalled", onInstalled);
};
}, []);
if (installed) return null;
if (!deferred && !showIosHint) return null;
const btn: React.CSSProperties = {
position: "fixed",
insetInlineEnd: 16,
bottom: 16,
zIndex: 2000,
display: "inline-flex",
alignItems: "center",
gap: 8,
minHeight: 44,
padding: "10px 18px",
border: 0,
borderRadius: 999,
background: "#7a4cc0",
color: "#fff",
font: "inherit",
fontSize: 14,
fontWeight: 600,
cursor: "pointer",
boxShadow: "0 2px 10px rgba(0,0,0,.18)",
};
if (showIosHint && !deferred) {
return (
<div style={{ ...btn, background: "#f4f0fb", color: "#4a2f7a", cursor: "default" }}>
<span aria-hidden="true">↥</span>
<span>แชร์ → เพิ่มไปยังหน้าจอโฮม</span>
</div>
);
}
return (
<button
type="button"
style={btn}
onClick={async () => {
if (!deferred) return;
await deferred.prompt();
const { outcome } = await deferred.userChoice;
if (outcome === "accepted") setInstalled(true);
setDeferred(null);
}}
>
<svg
viewBox="0 0 24 24"
width="18"
height="18"
fill="none"
stroke="currentColor"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round"
aria-hidden="true"
>
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" />
<path d="m7 10 5 5 5-5" />
<path d="M12 15V3" />
</svg>
ติดตั้งแอป
</button>
);
}
+1 -1
View File
@@ -1 +1 @@
{"fileNames":["./node_modules/typescript/lib/lib.es5.d.ts","./node_modules/typescript/lib/lib.es2015.d.ts","./node_modules/typescript/lib/lib.es2016.d.ts","./node_modules/typescript/lib/lib.es2017.d.ts","./node_modules/typescript/lib/lib.es2018.d.ts","./node_modules/typescript/lib/lib.es2019.d.ts","./node_modules/typescript/lib/lib.es2020.d.ts","./node_modules/typescript/lib/lib.es2021.d.ts","./node_modules/typescript/lib/lib.es2022.d.ts","./node_modules/typescript/lib/lib.es2023.d.ts","./node_modules/typescript/lib/lib.es2024.d.ts","./node_modules/typescript/lib/lib.esnext.d.ts","./node_modules/typescript/lib/lib.dom.d.ts","./node_modules/typescript/lib/lib.dom.iterable.d.ts","./node_modules/typescript/lib/lib.es2015.core.d.ts","./node_modules/typescript/lib/lib.es2015.collection.d.ts","./node_modules/typescript/lib/lib.es2015.generator.d.ts","./node_modules/typescript/lib/lib.es2015.iterable.d.ts","./node_modules/typescript/lib/lib.es2015.promise.d.ts","./node_modules/typescript/lib/lib.es2015.proxy.d.ts","./node_modules/typescript/lib/lib.es2015.reflect.d.ts","./node_modules/typescript/lib/lib.es2015.symbol.d.ts","./node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","./node_modules/typescript/lib/lib.es2016.array.include.d.ts","./node_modules/typescript/lib/lib.es2016.intl.d.ts","./node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","./node_modules/typescript/lib/lib.es2017.date.d.ts","./node_modules/typescript/lib/lib.es2017.object.d.ts","./node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","./node_modules/typescript/lib/lib.es2017.string.d.ts","./node_modules/typescript/lib/lib.es2017.intl.d.ts","./node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","./node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","./node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","./node_modules/typescript/lib/lib.es2018.intl.d.ts","./node_modules/typescript/lib/lib.es2018.promise.d.ts","./node_modules/typescript/lib/lib.es2018.regexp.d.ts","./node_modules/typescript/lib/lib.es2019.array.d.ts","./node_modules/typescript/lib/lib.es2019.object.d.ts","./node_modules/typescript/lib/lib.es2019.string.d.ts","./node_modules/typescript/lib/lib.es2019.symbol.d.ts","./node_modules/typescript/lib/lib.es2019.intl.d.ts","./node_modules/typescript/lib/lib.es2020.bigint.d.ts","./node_modules/typescript/lib/lib.es2020.date.d.ts","./node_modules/typescript/lib/lib.es2020.promise.d.ts","./node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","./node_modules/typescript/lib/lib.es2020.string.d.ts","./node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","./node_modules/typescript/lib/lib.es2020.intl.d.ts","./node_modules/typescript/lib/lib.es2020.number.d.ts","./node_modules/typescript/lib/lib.es2021.promise.d.ts","./node_modules/typescript/lib/lib.es2021.string.d.ts","./node_modules/typescript/lib/lib.es2021.weakref.d.ts","./node_modules/typescript/lib/lib.es2021.intl.d.ts","./node_modules/typescript/lib/lib.es2022.array.d.ts","./node_modules/typescript/lib/lib.es2022.error.d.ts","./node_modules/typescript/lib/lib.es2022.intl.d.ts","./node_modules/typescript/lib/lib.es2022.object.d.ts","./node_modules/typescript/lib/lib.es2022.string.d.ts","./node_modules/typescript/lib/lib.es2022.regexp.d.ts","./node_modules/typescript/lib/lib.es2023.array.d.ts","./node_modules/typescript/lib/lib.es2023.collection.d.ts","./node_modules/typescript/lib/lib.es2023.intl.d.ts","./node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts","./node_modules/typescript/lib/lib.es2024.collection.d.ts","./node_modules/typescript/lib/lib.es2024.object.d.ts","./node_modules/typescript/lib/lib.es2024.promise.d.ts","./node_modules/typescript/lib/lib.es2024.regexp.d.ts","./node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts","./node_modules/typescript/lib/lib.es2024.string.d.ts","./node_modules/typescript/lib/lib.esnext.array.d.ts","./node_modules/typescript/lib/lib.esnext.collection.d.ts","./node_modules/typescript/lib/lib.esnext.intl.d.ts","./node_modules/typescript/lib/lib.esnext.disposable.d.ts","./node_modules/typescript/lib/lib.esnext.promise.d.ts","./node_modules/typescript/lib/lib.esnext.decorators.d.ts","./node_modules/typescript/lib/lib.esnext.iterator.d.ts","./node_modules/typescript/lib/lib.esnext.float16.d.ts","./node_modules/typescript/lib/lib.esnext.error.d.ts","./node_modules/typescript/lib/lib.esnext.sharedmemory.d.ts","./node_modules/typescript/lib/lib.decorators.d.ts","./node_modules/typescript/lib/lib.decorators.legacy.d.ts","./node_modules/@types/react/global.d.ts","./node_modules/csstype/index.d.ts","./node_modules/@types/prop-types/index.d.ts","./node_modules/@types/react/index.d.ts","./node_modules/next/dist/styled-jsx/types/css.d.ts","./node_modules/next/dist/styled-jsx/types/macro.d.ts","./node_modules/next/dist/styled-jsx/types/style.d.ts","./node_modules/next/dist/styled-jsx/types/global.d.ts","./node_modules/next/dist/styled-jsx/types/index.d.ts","./node_modules/next/dist/server/get-page-fLine truncated
{"fileNames":["./node_modules/typescript/lib/lib.es5.d.ts","./node_modules/typescript/lib/lib.es2015.d.ts","./node_modules/typescript/lib/lib.es2016.d.ts","./node_modules/typescript/lib/lib.es2017.d.ts","./node_modules/typescript/lib/lib.es2018.d.ts","./node_modules/typescript/lib/lib.es2019.d.ts","./node_modules/typescript/lib/lib.es2020.d.ts","./node_modules/typescript/lib/lib.es2021.d.ts","./node_modules/typescript/lib/lib.es2022.d.ts","./node_modules/typescript/lib/lib.es2023.d.ts","./node_modules/typescript/lib/lib.es2024.d.ts","./node_modules/typescript/lib/lib.esnext.d.ts","./node_modules/typescript/lib/lib.dom.d.ts","./node_modules/typescript/lib/lib.dom.iterable.d.ts","./node_modules/typescript/lib/lib.es2015.core.d.ts","./node_modules/typescript/lib/lib.es2015.collection.d.ts","./node_modules/typescript/lib/lib.es2015.generator.d.ts","./node_modules/typescript/lib/lib.es2015.iterable.d.ts","./node_modules/typescript/lib/lib.es2015.promise.d.ts","./node_modules/typescript/lib/lib.es2015.proxy.d.ts","./node_modules/typescript/lib/lib.es2015.reflect.d.ts","./node_modules/typescript/lib/lib.es2015.symbol.d.ts","./node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","./node_modules/typescript/lib/lib.es2016.array.include.d.ts","./node_modules/typescript/lib/lib.es2016.intl.d.ts","./node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","./node_modules/typescript/lib/lib.es2017.date.d.ts","./node_modules/typescript/lib/lib.es2017.object.d.ts","./node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","./node_modules/typescript/lib/lib.es2017.string.d.ts","./node_modules/typescript/lib/lib.es2017.intl.d.ts","./node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","./node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","./node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","./node_modules/typescript/lib/lib.es2018.intl.d.ts","./node_modules/typescript/lib/lib.es2018.promise.d.ts","./node_modules/typescript/lib/lib.es2018.regexp.d.ts","./node_modules/typescript/lib/lib.es2019.array.d.ts","./node_modules/typescript/lib/lib.es2019.object.d.ts","./node_modules/typescript/lib/lib.es2019.string.d.ts","./node_modules/typescript/lib/lib.es2019.symbol.d.ts","./node_modules/typescript/lib/lib.es2019.intl.d.ts","./node_modules/typescript/lib/lib.es2020.bigint.d.ts","./node_modules/typescript/lib/lib.es2020.date.d.ts","./node_modules/typescript/lib/lib.es2020.promise.d.ts","./node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","./node_modules/typescript/lib/lib.es2020.string.d.ts","./node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","./node_modules/typescript/lib/lib.es2020.intl.d.ts","./node_modules/typescript/lib/lib.es2020.number.d.ts","./node_modules/typescript/lib/lib.es2021.promise.d.ts","./node_modules/typescript/lib/lib.es2021.string.d.ts","./node_modules/typescript/lib/lib.es2021.weakref.d.ts","./node_modules/typescript/lib/lib.es2021.intl.d.ts","./node_modules/typescript/lib/lib.es2022.array.d.ts","./node_modules/typescript/lib/lib.es2022.error.d.ts","./node_modules/typescript/lib/lib.es2022.intl.d.ts","./node_modules/typescript/lib/lib.es2022.object.d.ts","./node_modules/typescript/lib/lib.es2022.string.d.ts","./node_modules/typescript/lib/lib.es2022.regexp.d.ts","./node_modules/typescript/lib/lib.es2023.array.d.ts","./node_modules/typescript/lib/lib.es2023.collection.d.ts","./node_modules/typescript/lib/lib.es2023.intl.d.ts","./node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts","./node_modules/typescript/lib/lib.es2024.collection.d.ts","./node_modules/typescript/lib/lib.es2024.object.d.ts","./node_modules/typescript/lib/lib.es2024.promise.d.ts","./node_modules/typescript/lib/lib.es2024.regexp.d.ts","./node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts","./node_modules/typescript/lib/lib.es2024.string.d.ts","./node_modules/typescript/lib/lib.esnext.array.d.ts","./node_modules/typescript/lib/lib.esnext.collection.d.ts","./node_modules/typescript/lib/lib.esnext.intl.d.ts","./node_modules/typescript/lib/lib.esnext.disposable.d.ts","./node_modules/typescript/lib/lib.esnext.promise.d.ts","./node_modules/typescript/lib/lib.esnext.decorators.d.ts","./node_modules/typescript/lib/lib.esnext.iterator.d.ts","./node_modules/typescript/lib/lib.esnext.float16.d.ts","./node_modules/typescript/lib/lib.esnext.error.d.ts","./node_modules/typescript/lib/lib.esnext.sharedmemory.d.ts","./node_modules/typescript/lib/lib.decorators.d.ts","./node_modules/typescript/lib/lib.decorators.legacy.d.ts","./node_modules/@types/react/global.d.ts","./node_modules/csstype/index.d.ts","./node_modules/@types/prop-types/index.d.ts","./node_modules/@types/react/index.d.ts","./node_modules/next/dist/styled-jsx/types/css.d.ts","./node_modules/next/dist/styled-jsx/types/macro.d.ts","./node_modules/next/dist/styled-jsx/types/style.d.ts","./node_modules/next/dist/styled-jsx/types/global.d.ts","./node_modules/next/dist/styled-jsx/types/index.d.ts","./node_modules/next/dist/server/get-page-fLine truncated