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:
1 parent
05487728a7
commit
e6c4ebff48
394 files changed
+3977
-37891
No files matched your search
@@ -1,14 +0,0 @@
|
||||
/**
|
||||
* origin ของหน้าปัจจุบัน สำหรับใช้ใน `meta()` ของ route
|
||||
*
|
||||
* ทำไมต้องมาใน loader: `meta()` ไม่มี access ต่อ request และ (ใน framework นี้)
|
||||
* ไม่ได้รับ loader data ของ root ผ่าน `matches` — route ที่มี meta จึงต้อง
|
||||
* ส่ง origin ของคำขอตัวเองกลับมาใน loader แล้วอ่านจาก `loaderData.origin`
|
||||
*/
|
||||
import { originFromRequest } from "@/lib/request-origin";
|
||||
import { configuredOrigin } from "@/lib/site";
|
||||
|
||||
/** โดเมนของ request นี้ — ตั้ง env SITE_URL เฉพาะกรณีต้องบังคับ */
|
||||
export function resolvePageOrigin(request: Request): string {
|
||||
return configuredOrigin() || originFromRequest(request);
|
||||
}
|
||||
Reference in new issue
Block a user