mirror of
https://github.com/tiennm99/loto.git
synced 2026-05-17 18:59:22 +00:00
10c0bf85f3
Replace the full build+publish flow with a tiny inline shell step that emits two static HTML pages (out/index.html and out/master/index.html). Each one carries: <meta http-equiv="refresh" content="0; url=https://loto.miti99.com/"> <script>location.replace("https://loto.miti99.com" + ...)</script> The script preserves path / query / hash, so /loto/ → loto.miti99.com/ /loto/master → loto.miti99.com/master /loto/?x=1 → loto.miti99.com/?x=1 Cloudflare Pages stays canonical; this change just stops GH Pages from serving a stale duplicate of the app and points old links at the live domain instead. The build:gh npm script is kept as a manual escape hatch for the rare case where someone wants to deploy a real GH Pages copy by hand.