24 lines
506 B
TypeScript
24 lines
506 B
TypeScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
|
|
const noStoreHeaders = {
|
|
"Cache-Control": "no-store, no-cache, must-revalidate, proxy-revalidate",
|
|
Pragma: "no-cache",
|
|
Expires: "0",
|
|
};
|
|
|
|
export default defineConfig({
|
|
plugins: [react(), tailwindcss()],
|
|
server: {
|
|
host: "0.0.0.0",
|
|
port: 5173,
|
|
headers: noStoreHeaders,
|
|
},
|
|
preview: {
|
|
host: "0.0.0.0",
|
|
port: 4173,
|
|
headers: noStoreHeaders,
|
|
},
|
|
});
|