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
-
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.
![deploy](https://private-user-images.githubusercontent.com/78266582/393400294-c95ab602-a6a6-4988-9846-f9d5e9b6d041.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0MjY4NTEsIm5iZiI6MTczOTQyNjU1MSwicGF0aCI6Ii83ODI2NjU4Mi8zOTM0MDAyOTQtYzk1YWI2MDItYTZhNi00OTg4LTk4NDYtZjlkNWU5YjZkMDQxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDA2MDIzMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWM5NmQ5ODk4YjJkOWVkYTA2YjMxNDkyYTE1NGMwYWIyNmRhMjZjNDBmZmUwMmYwMTMwZDNkZTg4MzAwM2ExYTMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.VV0IR9puDYZaQK7YbYL5hm5kcVQD9JcGnfyKFyD9jf0)
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