-
Tianyi Liang authoredTianyi Liang authored
vite.config.ts 339 B
import { defineConfig, loadEnv } from "vite";
import react from "@vitejs/plugin-react";
import { stringToSlug } from "./src/utils";
// https://vitejs.dev/config/
export default () => {
const env = loadEnv("dev", process.cwd());
return defineConfig({
base: `/${stringToSlug(env.VITE_TEAM_NAME)}/`,
plugins: [react()],
});
};