-
-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with adding origin #515
Comments
I encountered the same issue. The error seems to be resolved by configuring the
However, I've noticed that step 2 doesn't appear to function as expected. |
Yeah, |
Any news on this? |
|
This is a change done in https://sidebase.io/nuxt-auth/v0.6/configuration/nuxt-config As this seems to be a misunderstanding, I will close this issue and refer you to the documentation or to #368 if there are any issues with deploying to another baseUrl. |
To resolve the AUTH_NO_ORIGIN error in your Nuxt.js project, you need to ensure that your environment variable is correctly set and properly used in your Nuxt configuration. Here are the steps to fix this issue: First, set the AUTH_ORIGIN environment variable in your .env file. For example: .env AUTH_ORIGIN=http://localhost:3000 2.Configure Nuxt to Use the Environment Variable: In your nuxt.config.ts file, ensure that the auth module uses the AUTH_ORIGIN environment variable. Here is how you can do it: auth: {
baseURL: process.env.AUTH_ORIGIN
} |
Environment
Reproduction
n/a
Describe the bug
I still get the AUTH_NO_ORIGIN production error whenever I try to deploy my application even when I add my
origin
to theauth
object in thenuxt.config.ts
fileAdditional context
The documentation I followed: https://sidebase.io/nuxt-auth/configuration/nuxt-config
Logs
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
The text was updated successfully, but these errors were encountered: