Skip to content

Commit

Permalink
chore: remove duplicate / on tailwind viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
atinux committed Aug 29, 2023
1 parent 812ce39 commit aa75b79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/viewer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default async function (twConfig: Partial<TWConfig>, 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)))}`)
})
}

0 comments on commit aa75b79

Please sign in to comment.