From ccd3ccd556e5e5e1e3740e6868a79481c03e1b9c Mon Sep 17 00:00:00 2001 From: MythEclipse Date: Mon, 1 Jun 2026 23:22:14 +0700 Subject: [PATCH] fix(frontend): add vite preview allowedHosts and port config Vite preview blocks unknown hosts by default. Added allowedHosts for imphnen.asepharyana.my.id and set port/host in preview config. Co-Authored-By: Claude Opus 4.6 --- services/frontend/vite.config.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/services/frontend/vite.config.ts b/services/frontend/vite.config.ts index 3ce3aab..90d1e41 100644 --- a/services/frontend/vite.config.ts +++ b/services/frontend/vite.config.ts @@ -13,4 +13,9 @@ export default defineConfig({ server: { middlewareMode: false, }, + preview: { + port: 3000, + host: true, + allowedHosts: ["imphnen.asepharyana.my.id", "imphnen.asepharyana.tech", "imphnen.asepharyana.web.id"], + }, });