2023-08-22 10:44:39 +03:00
|
|
|
import react from "@vitejs/plugin-react";
|
|
|
|
import { defineConfig } from "vite";
|
|
|
|
|
|
|
|
// https://vitejs.dev/config/
|
|
|
|
export default defineConfig({
|
|
|
|
plugins: [react()],
|
|
|
|
define: {
|
|
|
|
"process.env": {},
|
|
|
|
},
|
2023-11-16 10:33:15 +03:00
|
|
|
// Used for local builds to force refresh links to the local version
|
|
|
|
optimizeDeps: {
|
|
|
|
include: ["azure-kusto-data", "azure-kusto-ingest"],
|
|
|
|
force: true,
|
|
|
|
},
|
|
|
|
build: {
|
|
|
|
rollupOptions: {
|
|
|
|
external: ["azure-kusto-data", "azure-kusto-ingest"],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
server: {
|
|
|
|
// The port must match the configured redirectUri in the Azure portal app
|
|
|
|
port: 3000,
|
|
|
|
},
|
2023-08-22 10:44:39 +03:00
|
|
|
});
|