mirror of
https://github.com/wassname/optuna-dashboard.git
synced 2026-10-30 13:30:17 +08:00
19 lines
508 B
TypeScript
19 lines
508 B
TypeScript
import react from "@vitejs/plugin-react-swc";
|
|
import { defineConfig } from "vite";
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
// Necessary to load the SQLite3 WASM file.
|
|
// See: https://github.com/sqlite/sqlite-wasm?tab=readme-ov-file#usage-with-vite
|
|
server: {
|
|
headers: {
|
|
"Cross-Origin-Opener-Policy": "same-origin",
|
|
"Cross-Origin-Embedder-Policy": "require-corp",
|
|
},
|
|
},
|
|
optimizeDeps: {
|
|
exclude: ["@sqlite.org/sqlite-wasm"],
|
|
},
|
|
plugins: [react()],
|
|
});
|