chore(publish): replace source tree with static export at repo root

Publish the prerendered static export (index.html, 404.html, cinema/,
c/, about/, for-cinemas/, for-film-lovers/, assets/, images/, og/,
sitemap.xml, robots.txt) as the site root and remove the React Router
+ Nitro source tree from this branch. Source remains available in
history at 0548772.

Note: public/sw.js here reports VERSION v2.0.5 while the removed source
tree (v2.1.0) was newer, and .gitignore was not carried over.
This commit is contained in:
Bkk1234 committed 2026-11-22 22:24:36 +07:00
1 parent 05487728a7
commit e6c4ebff48
394 files changed
+3977 -37891

No files matched your search

-27
View File
@@ -1,27 +0,0 @@
import { createContext, useContext, type ReactNode } from "react";
/**
* โดเมนที่ใช้ในลิงก์แชร์ (มาจาก env `SHARE_ORIGIN` ผ่าน loader ที่ root)
*
* ค่าเริ่มต้นเป็นสตริงว่าง = ให้ปุ่มแชร์ใช้ origin ของหน้าที่เปิดอยู่
* แยกเป็น context เพื่อไม่ให้ component ต้องรู้จัก loader/route ของ root
*/
const ShareOriginContext = createContext<string>("");
export function ShareOriginProvider({
origin,
children,
}: {
origin: string;
children: ReactNode;
}) {
return (
<ShareOriginContext.Provider value={origin}>
{children}
</ShareOriginContext.Provider>
);
}
export function useShareOrigin(): string {
return useContext(ShareOriginContext);
}