excalidraw/packages/excalidraw/vite.config.mts

16 lines
346 B
TypeScript

import { defineConfig, loadEnv } from "vite";
import react from "@vitejs/plugin-react";
// To load .env.local variables
const envVars = loadEnv("", `../../`);
// https://vitejs.dev/config/
export default defineConfig({
root: "example/public",
server: {
port: 3001,
// open the browser
open: true,
},
publicDir: "public",
});