mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-15 20:17:22 +00:00
24 lines
662 B
TypeScript
24 lines
662 B
TypeScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
|
|
// https://vite.dev/config/
|
|
// https://sqlocal.dallashoffman.com/guide/setup#vite-configuration
|
|
export default defineConfig({
|
|
optimizeDeps: {
|
|
exclude: ["sqlocal"],
|
|
},
|
|
plugins: [
|
|
react(),
|
|
{
|
|
name: "configure-response-headers",
|
|
configureServer: (server) => {
|
|
server.middlewares.use((_req, res, next) => {
|
|
res.setHeader("Cross-Origin-Embedder-Policy", "require-corp");
|
|
res.setHeader("Cross-Origin-Opener-Policy", "same-origin");
|
|
next();
|
|
});
|
|
},
|
|
},
|
|
],
|
|
});
|