forked from izu/student-web-if-development-kit
chore: configure Netlify deployment
This commit is contained in:
@@ -20,6 +20,16 @@ Buka URL dari Vite (default: `http://localhost:5173`) lalu akses launcher di `/`
|
|||||||
| `npm run build` | Build static output ke folder `dist` |
|
| `npm run build` | Build static output ke folder `dist` |
|
||||||
| `npm run preview` | Preview hasil build |
|
| `npm run preview` | Preview hasil build |
|
||||||
|
|
||||||
|
## Deploy Netlify
|
||||||
|
|
||||||
|
Project ini sudah punya konfigurasi Netlify di `netlify.toml`.
|
||||||
|
|
||||||
|
Saat membuat site di Netlify:
|
||||||
|
- Repository: `GuavaPopper/PPL_Staging`
|
||||||
|
- Branch deploy: `Staging`
|
||||||
|
- Build command: `npm run build`
|
||||||
|
- Publish directory: `dist`
|
||||||
|
|
||||||
## Struktur Folder
|
## Struktur Folder
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
[build]
|
||||||
|
command = "npm run build"
|
||||||
|
publish = "dist"
|
||||||
|
|
||||||
|
[build.environment]
|
||||||
|
NODE_VERSION = "22"
|
||||||
Reference in New Issue
Block a user