feat: make the web version fully working (#67)

Reviewed-on: #67
This commit was merged in pull request #67.
This commit is contained in:
2026-10-25 13:10:51 +00:00
parent 3212951ed4
commit 0824b1825b
42 changed files with 2948 additions and 936 deletions
+2 -6
View File
@@ -10,7 +10,7 @@ export default defineConfig({
viteStaticCopy({
targets: [
{
src: path.resolve(__dirname, "../../../assets/icons"),
src: path.resolve(__dirname, "../../assets/icons"),
dest: "assets",
},
],
@@ -21,7 +21,7 @@ export default defineConfig({
server.middlewares.use(
"/coop/assets",
(req, res, next) => {
const assetsPath = path.resolve(__dirname, "../../../assets");
const assetsPath = path.resolve(__dirname, "../../assets");
const filePath = path.join(
assetsPath,
req.url.replace("/assets", ""),
@@ -61,10 +61,6 @@ export default defineConfig({
strict: false,
allow: [".."],
},
headers: {
"Cross-Origin-Embedder-Policy": "require-corp",
"Cross-Origin-Opener-Policy": "same-origin",
},
},
optimizeDeps: {
exclude: ["./src/wasm"],