From 6f38bfb14845253ae7d112e4f777b4d902b9f8be Mon Sep 17 00:00:00 2001 From: Akash K <57758277+amk-dev@users.noreply.github.com> Date: Mon, 17 Jul 2023 14:39:32 +0530 Subject: [PATCH] chore: update generateSitemap usage (#3182) --- packages/hoppscotch-common/package.json | 2 +- packages/hoppscotch-selfhost-web/vite.config.ts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/hoppscotch-common/package.json b/packages/hoppscotch-common/package.json index 5986de983..bd998020e 100644 --- a/packages/hoppscotch-common/package.json +++ b/packages/hoppscotch-common/package.json @@ -148,7 +148,7 @@ "vite-plugin-html-config": "^1.0.10", "vite-plugin-inspect": "^0.7.4", "vite-plugin-pages": "^0.26.0", - "vite-plugin-pages-sitemap": "^1.4.0", + "vite-plugin-pages-sitemap": "^1.4.5", "vite-plugin-pwa": "^0.13.1", "vite-plugin-vue-layouts": "^0.7.0", "vite-plugin-windicss": "^1.8.8", diff --git a/packages/hoppscotch-selfhost-web/vite.config.ts b/packages/hoppscotch-selfhost-web/vite.config.ts index 1ab48152c..14c1a50a4 100644 --- a/packages/hoppscotch-selfhost-web/vite.config.ts +++ b/packages/hoppscotch-selfhost-web/vite.config.ts @@ -79,8 +79,7 @@ export default defineConfig({ dirs: "../hoppscotch-common/src/pages", importMode: "async", onRoutesGenerated(routes) { - // HACK: See: https://github.com/jbaubree/vite-plugin-pages-sitemap/issues/173 - return ((generateSitemap as any).default as typeof generateSitemap)({ + return generateSitemap({ routes, nuxtStyle: true, allowRobots: true,