2026-07-02 00:02:41 +07:00
|
|
|
|
import { defineConfig } from "astro/config";
|
|
|
|
|
|
import react from "@astrojs/react";
|
|
|
|
|
|
|
|
|
|
|
|
// ─────────────────────────────────────────────────────────────
|
|
|
|
|
|
// BETE – Astro Configuration
|
|
|
|
|
|
// Tailwind v4 ditangani via PostCSS (postcss.config.js)
|
|
|
|
|
|
// ─────────────────────────────────────────────────────────────
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
|
|
integrations: [react()],
|
|
|
|
|
|
|
|
|
|
|
|
output: "static",
|
|
|
|
|
|
|
|
|
|
|
|
// Dev server
|
|
|
|
|
|
server: {
|
|
|
|
|
|
host: "0.0.0.0",
|
|
|
|
|
|
port: 3000,
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
// Preview
|
|
|
|
|
|
preview: {
|
|
|
|
|
|
host: true,
|
|
|
|
|
|
port: 3000,
|
|
|
|
|
|
allowedHosts: [
|
|
|
|
|
|
"imphnen.asepharyana.my.id",
|
|
|
|
|
|
"imphnen.asepharyana.tech",
|
|
|
|
|
|
"imphnen.asepharyana.web.id",
|
|
|
|
|
|
],
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
// Vite config
|
|
|
|
|
|
vite: {
|
|
|
|
|
|
server: {
|
|
|
|
|
|
allowedHosts: [
|
|
|
|
|
|
"imphnen.asepharyana.my.id",
|
|
|
|
|
|
"imphnen.asepharyana.tech",
|
|
|
|
|
|
"imphnen.asepharyana.web.id",
|
|
|
|
|
|
],
|
|
|
|
|
|
watch: {
|
2026-07-02 03:54:44 +07:00
|
|
|
|
// Penting: Astro punya public/ dir sendiri, jangan bentrok
|
2026-07-02 00:02:41 +07:00
|
|
|
|
ignored: ["!**/node_modules/**"],
|
|
|
|
|
|
},
|
|
|
|
|
|
},
|
2026-07-02 03:54:44 +07:00
|
|
|
|
// PostCSS otomatis terdeteksi dari root project
|
2026-07-02 00:02:41 +07:00
|
|
|
|
},
|
|
|
|
|
|
});
|