From aa75b799dd67773e8f1cc110e33551eb68cb34c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Tue, 29 Aug 2023 17:16:39 +0200 Subject: [PATCH] chore: remove duplicate / on tailwind viewer --- src/viewer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/viewer.ts b/src/viewer.ts index e1653275..7b74fd67 100644 --- a/src/viewer.ts +++ b/src/viewer.ts @@ -20,7 +20,7 @@ export default async function (twConfig: Partial, nuxt = useNuxt()) { // @ts-ignore if (isNuxt2()) { nuxt.options.serverMiddleware.push({ route, handler: (req, res) => viewerDevMiddleware(new H3Event(req, res)) }) } nuxt.hook('listen', (_, listener) => { - const viewerUrl = `${withoutTrailingSlash(listener.url)}${route}` + const viewerUrl = `${withoutTrailingSlash(listener.url)}${route}`.replace(/\/+/g, '/') useLogger('nuxt:tailwindcss').info(`Tailwind Viewer: ${underline(yellow(withTrailingSlash(viewerUrl)))}`) }) }