Skip to content

Does not work with prod buildΒ #1042

@bobbywarner

Description

@bobbywarner

Environment

Node v24.4.0
Nuxt 3.17.6

Reproduction

The issue is obvious, just attempt to build for production mode (pnpm run build). I noticed another person reporting the same issue on StackOverflow too:

https://stackoverflow.com/questions/79625796/why-is-sidebase-nuxt-auth-not-working-in-production-without-ssr

Describe the bug

We've used this library for over a year now without issues, but after trying to upgrade to nuxt-auth 1.0.0 (with next-auth 4.21.1 or 4.22.5) we've encountered an odd issue. Everything works fine in development (pnpm run dev), but nothing works when deployed (pnpm run build). There is nothing logged to the console or anything, just attempting to login or logout hangs indefinitely.

Additional context

No response

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA bug that needs to be resolvedp4Important Issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions