prod için Allowed_Host eklendi.
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
import { defineConfig } from "vite";
|
||||
import react from "@vitejs/plugin-react";
|
||||
|
||||
const allowedHosts = process.env.ALLOWED_HOSTS?.split(",").map((h) => h.trim()).filter(Boolean);
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
server: {
|
||||
port: 5173,
|
||||
host: true
|
||||
host: true,
|
||||
...(allowedHosts?.length ? { allowedHosts } : {})
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user