fix(runtime): ถอด AppProviders/agent-native session gate ออก — prod build + static export ใช้ได้จริง

- app/root.tsx: ลบ <AppProviders>, DbSyncSetup (useDbSync/useNavigationState/queryClient)
  เพราะ session gate รอ /_agent-native/auth/session + /status + application-state
  ซึ่งตอบ 401 บน production build และ 404 บน static host
  → React ไม่ mount เนื้อหา, ขึ้น AppShellSkeleton + "Configuration error (2 issues)"
- คงไว้: AppToolkitProvider (design system), THEME_INIT_SCRIPT, analytics, PWA, ErrorBoundary
- sw.js VERSION v2.1.0
- README + DESIGN: บันทึกเหตุผลและกฎ "ห้ามใส่ AppProviders กลับ"
This commit is contained in:
Bkk1234 committed 2026-11-21 15:46:07 +07:00
1 parent 507cd44d49
commit d1e76ab2be
4 files changed
+77 -81

No files matched your search

+1 -1
View File
@@ -18,7 +18,7 @@
* | โดเมนอื่น (รูป hotlink) | ไม่จัดการ |
* | /app/* · /node_modules/* · /@* | ไม่จัดการ (โมดูลของ dev server) |
*/
const VERSION = "v2.0.5";
const VERSION = "v2.1.0";
const PAGES_CACHE = `alterflixhub-pages-${VERSION}`;
const ASSETS_CACHE = `alterflixhub-assets-${VERSION}`;