You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 14b8d6b
Browse filesBrowse the repository at this point in the historyBrowse files
* fix(server): move bug-report endpoint off /api to avoid consumer /api proxy collision (DEV-2114)
Consuming Nuxt apps very commonly proxy all `/api/**` requests to a separate
backend via Nitro `routeRules`. That catch-all swallowed `/api/bug-report` and
forwarded it to the backend (404), so bug.lt's own server handler never ran on
built/deployed apps.
Add a configurable `endpoint` module option defaulting to `/_bug-lt/report`
(Nuxt-internal `_`-prefix style, outside `/api/`). Expose it via
`runtimeConfig.public.bugLt.endpoint`; register the server handler with
`options.endpoint`; and read the same value in `useBugReport` so server and
client always agree. Document the option and rationale in the README.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* fix(button): render BugReportButton client-only to stop hydration mismatch + RouterLink warning (DEV-2017)
The floating button rendered a Nuxt UI `UButton` (which resolves to a NuxtLink
with `to=undefined`) inside `<Teleport to="body">` during SSR. On the client
this mismatched, logging `Failed to resolve component: RouterLink` plus
hydration-node-mismatch warnings on every page.
The button is a pure client-side UI overlay, so wrap the `<Teleport>`/`<UButton>`
block in `<ClientOnly>` to skip SSR entirely. Behavior (position, color,
screenshot capture, openModal) is unchanged. The modal needs no change — it is
only ever mounted client-side via `useOverlay().create()` from a click, never in
the SSR tree.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0 commit comments