Replies: 1 comment 2 replies
-
|
Hey @pytatbro , This is probably a Netlify or GitHub specific issue. If your OAuth settings never mention your preview deployment url, how come it redirects you to it? It shouldn't know about that url. I haven't deployed Outstatic to Netlify before. Question, are you starting your login from yourdomain.com/outstatic or from (deploy preview url)/outstatic? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I set up Outstatic for local development, and it is really great. However, when I deploy my site to Netlify, there is an issue in the login process.
So I set up my Github OAuth and pass in these values:
When I try logging in, sometimes it is successful. However, sometimes it redirects me to https://67535705052609009e19308a--mydomain.netlify.app/outstatic?code=something (should it be https://mydomain.com/outstatic?code=something ?). Because of this, it shows me the login screen again instead of the dashboard. If I manually put https://mydomain.com/outstatic into the browser, then it serves me the dashboard as normal.
I found that https://67535705052609009e19308a--mydomain.netlify.app/ is the Permalink of the lastest published deployment on Netlify.

So, I think the issue could be within the Next.js Server Handler function that Netlify uses on all deployed Next.js sites.
I am pretty new to Next.js and honestly haven't tried Vercel before. Is this behavior only applied to Netlify?
That aside, Outstatic is really great so far. I really appreciate the effort you guys put in 👏
Just for reference, I am using Next.js 15.0.3 and Outstatic ^1.4.13
Beta Was this translation helpful? Give feedback.
All reactions