- ไปที่เมนู Static Web แล้วกด Deploy จาก Git
- เลือกผู้ให้บริการ Git ใส่ URL ของ repository และ token (ถ้าเป็น repo ส่วนตัว) แล้วกด ตรวจสอบ Repository
- ระบบตรวจ framework และเสนอค่า build ให้ ตรวจ Node.js version คำสั่ง install/build และโฟลเดอร์ output
- เปิด Auto Deploy ถ้าอยากให้ build ทุกครั้งที่ push แล้วกด deploy
| ผู้ให้บริการ | token ที่ใช้ |
|---|---|
| GitHub | Fine-grained token สิทธิ์ Contents: Read-only |
| GitLab | token scope read_api บทบาท Reporter ขึ้นไป |
| Bitbucket | Repository token (Repositories: Read) หรือ app password พร้อมชื่อผู้ใช้ |
รองรับ Next.js (ต้องตั้ง output: 'export'), Nuxt, Gatsby, Astro, SvelteKit (adapter-static), Docusaurus, VitePress, Eleventy, Angular, Vue, Vite, Create React App และ HTML ธรรมดา
ตัวแปรตอน build ถูกฝังในไฟล์เว็บที่ทุกคนเห็นได้ ห้ามใส่รหัสผ่านหรือ secret
Static Web ใช้โควตาจำนวนเว็บร่วมกับเว็บไซต์แบบลากวาง จำนวน build ต่อเดือน: Free 30 · Starter 40 · Business 120 และผูกโดเมนของตัวเองได้ในแท็บ ตั้งค่า > โดเมน ด้วยขั้นตอนเดียวกับ เว็บไซต์ (แพ็กเกจที่จ่ายเงิน)