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: {