From 42a80a41ca81975c89420159b6d5ffbafc60ad53 Mon Sep 17 00:00:00 2001 From: Geometrically <18202329+Geometrically@users.noreply.github.com> Date: Sun, 7 Jan 2024 19:27:30 -0500 Subject: [PATCH] Fix collection page (#1534) * Fix collection page * remove wrangler.toml --- pages/collection/[id].vue | 8 ++++++-- wrangler.toml | 9 --------- 2 files changed, 6 insertions(+), 11 deletions(-) delete mode 100644 wrangler.toml diff --git a/pages/collection/[id].vue b/pages/collection/[id].vue index befb3f75a..957bc68bf 100644 --- a/pages/collection/[id].vue +++ b/pages/collection/[id].vue @@ -412,8 +412,12 @@ try { await useAsyncData(`user/${collection.value.user}`, () => useBaseFetch(`user/${collection.value.user}`) ), - await useAsyncData(`projects?ids=${JSON.stringify(collection.value.projects)}]`, () => - useBaseFetch(`projects?ids=${JSON.stringify(collection.value.projects)}`) + await useAsyncData( + `projects?ids=${encodeURIComponent(JSON.stringify(collection.value.projects))}]`, + () => + useBaseFetch( + `projects?ids=${encodeURIComponent(JSON.stringify(collection.value.projects))}` + ) ), ]) } diff --git a/wrangler.toml b/wrangler.toml deleted file mode 100644 index 866f8d54d..000000000 --- a/wrangler.toml +++ /dev/null @@ -1,9 +0,0 @@ -name = "knossos" -main = "./.output/server/index.mjs" -workers_dev = true -compatibility_date = "2022-07-12" -account_id = "9ddae624c98677d68d93df6e524a6061" -node_compat = true - -[site] -bucket = ".output/public"