867 B
867 B
Kelola Bumi Web
Website perusahaan PT Kelola Bumi Nusantara berbasis Next.js.
Requirement
- Node.js 20 atau lebih baru
- npm
Menjalankan lokal
npm install
npm run dev
Server produksi lokal:
npm run build
npm run start
Environment
Salin .env.example menjadi .env.local lalu isi nilainya.
Variabel yang dipakai:
SMTP_HOSTSMTP_PORTSMTP_SECURESMTP_USERSMTP_PASSCONTACT_TO_EMAILCONTACT_CAPTCHA_SECRET
Deploy ke server
- Clone repository di server.
- Buat file
.env.local. - Jalankan
npm install. - Jalankan
npm run build. - Jalankan
npm run start.
Untuk production, disarankan memakai process manager seperti PM2 atau systemd, dan reverse proxy seperti Nginx.
Catatan
- Jangan commit
.env.local. - Folder
.nextdannode_modulestidak perlu di-upload ke git.