Lompat ke konten
Rahman FakhruDiskusi proyek

Pelajaran 16 / 17

Vercel / Netlify: dari repo ke URL

Alur yang sama di keduanya 1. Push kode ke GitHub . 2. Buka Vercel/Netlify → Import project → pilih repo. 3. Platform mendeteksi Next.js otomatis → Deploy . 4. Setiap push ke branch utama = deploy baru otomatis; preview

#Alur yang sama di keduanya

  1. Push kode ke GitHub.
  2. Buka Vercel/Netlify → Import project → pilih repo.
  3. Platform mendeteksi Next.js otomatis → Deploy.
  4. Setiap push ke branch utama = deploy baru otomatis; preview URL untuk tiap perubahan.

#Env variables di produksi

Set lewat dashboard (Settings → Environment Variables): nilai NEXT_PUBLIC_CONVEX_URL, kunci rahasia, dst. Ubah env = perlu redeploy.

#Untuk backend Convex

Jalankan npx convex deploy untuk mendorong schema+functions ke deployment produksi Convex, lalu pastikan URL produksinya yang dipakai di env hosting.

#Referensi