asset-management/vite.config.js

13 lines
336 B
JavaScript

import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
export default defineConfig(({ command }) => ({
// The preview runs at https://preview-dev.getzino.in/asset-management/
base: command === "build" ? "/asset-management/" : "/",
plugins: [react()],
server: {
port: 5173,
open: true,
},
}));