From e968ab9fae465f2bc77d3c1a18e0e609d1762f9e Mon Sep 17 00:00:00 2001 From: AmyangXYZ Date: Fri, 27 Sep 2024 11:43:46 -0400 Subject: [PATCH] add vercel.json --- vercel.json | 17 +++++++++++++++++ vite.config.ts | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 vercel.json diff --git a/vercel.json b/vercel.json new file mode 100644 index 0000000..f2e0ac4 --- /dev/null +++ b/vercel.json @@ -0,0 +1,17 @@ +{ + "headers": [ + { + "source": "/(.*)", + "headers": [ + { + "key": "Cross-Origin-Opener-Policy", + "value": "same-origin" + }, + { + "key": "Cross-Origin-Embedder-Policy", + "value": "require-corp" + } + ] + } + ] +} \ No newline at end of file diff --git a/vite.config.ts b/vite.config.ts index f983edf..6e988b8 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -5,7 +5,7 @@ import react from "@vitejs/plugin-react" export default defineConfig({ plugins: [react()], optimizeDeps: { - exclude: ["babylon-mmd", "babylon-mmd/esm/Loader/pmxLoader"], + exclude: ["babylon-mmd"], }, server: { headers: {