Rebuild as Astro static site (output identical to original)
- Move all 39 cloned pages + assets into public/ (Astro copies verbatim to dist/) -> dist/ is byte-identical to www.mitsuthailand.com (home 143633 bytes exact) - Add Astro project: astro.config.mjs, package.json, src/layouts/Base.astro, src/pages/example.astro (sample Astro component page, builds to /example/) - Multi-stage Dockerfile: pnpm build -> nginx serve + env-injecting entrypoint - Env-configurable: GA_ID, FORM_EMAIL, GMAP_LAT/LNG/.env.example - Remove Python crawl tooling and old nginx-static site/ layout - Verified: astro build -> 39 pages + example; all routes serve 200 via preview
This commit is contained in:
3
public/assets/external/track/track.js
vendored
Normal file
3
public/assets/external/track/track.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
var inframe="";var inframeReferrer=false;try{if(top.document.domain!=self.document.domain){var inframeReferrer=document.referrer;}else{}}catch(err){var inframeReferrer=document.referrer;}
|
||||
if(inframeReferrer){var elemLink=document.createElement('a');elemLink.setAttribute('href',inframeReferrer);inframe="&inframe="+escape(elemLink.hostname);}
|
||||
document.write("<IMG SRC='//www.yellowpages.co.th/track/track.php?url="+escape(window.location.href)+inframe+"' HEIGHT='0' WIDTH='0' ID='typtrack' ALT='' TITLE='' REL='NOFOLLOW' STYLE='width:0px; height:0px; border:0px '/>");
|
||||
Reference in New Issue
Block a user