Overview
This is a memo about important considerations when using sidebase/nuxt-auth in a production environment.
sidebase/nuxt-auth is an authentication module for Nuxt 3 applications.
GitHub - sidebase/nuxt-auth: Authentication built for Nuxt 3! Easily add authentication via OAuth providers, credentials or Email Magic URLs!
Authentication built for Nuxt 3! Easily add authentication via OAuth providers, credentials or Email Magic URLs! - sidebase/nuxt-auth
Problem
When deploying to Vercel or AWS Amplify, a server error occurred with the following message.
AUTH_NO_ORIGIN: No `origin` - this is an error in production, see https://sidebase.io/nuxt-auth/resources/errors. You can ignore this during development
Solution
The following was helpful.
Error 500 on Vercel deployment · Issue #613 · sidebase/nuxt-auth
Environment No response Reproduction https://github.com/Timothy16/Rtechbizusers2.0 Demo is here: https://app-user-rtech.vercel.app/login Steps to reproduce Register and check the profile page Descr...
By providing baseURL as shown below, the above error was resolved.
auth: {
baseURL: process.env.AUTH_ORIGIN,
},
Upon reviewing again, I found that this was documented at the following link, but it was not easy to find.

sidebase - by SIDESTREAM
The web app development kit to build production fullstack Nuxt 3+ apps quickly.
Summary
I hope this is helpful for those experiencing the same issue.




Comments
…