From 9635ebf2247ee1affb007264a457245ae7f85343 Mon Sep 17 00:00:00 2001 From: Sabrina Ferguson Date: Thu, 5 Sep 2024 12:47:44 -0400 Subject: [PATCH] fix: remove unused search --- app.vue | 16 +--------------- error.vue | 14 +------------- nuxt.config.ts | 1 - server/api/search.json.get.ts | 7 ------- 4 files changed, 2 insertions(+), 36 deletions(-) delete mode 100644 server/api/search.json.get.ts diff --git a/app.vue b/app.vue index 37dc7310..a9f7772f 100644 --- a/app.vue +++ b/app.vue @@ -1,6 +1,4 @@ diff --git a/error.vue b/error.vue index 9db3021a..8581b19c 100644 --- a/error.vue +++ b/error.vue @@ -1,6 +1,5 @@ diff --git a/nuxt.config.ts b/nuxt.config.ts index fa6c3ac8..59ee3c61 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -33,7 +33,6 @@ export default defineNuxtConfig({ }, }, routeRules: { - '/api/search.json': { prerender: true }, '*-surround': { robots: false }, '/*/*-surround': { robots: false }, '/tutorials/*/_dir': { robots: false }, diff --git a/server/api/search.json.get.ts b/server/api/search.json.get.ts deleted file mode 100644 index 2030727a..00000000 --- a/server/api/search.json.get.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { serverQueryContent } from '#content/server'; - -export default eventHandler(async (event) => { - return serverQueryContent(event) - .where({ _type: 'markdown', navigation: { $ne: false }, _partial: false }) - .find(); -});