-
Notifications
You must be signed in to change notification settings - Fork 756
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
Following the guide resulted in 404 not found error #289
Comments
You have to go to |
Hello, did any one get to resolve this issue. I followed the same guide with the exact steps and deployed the application. Now I get 404 errors on every page. |
I'm also having this issue. I filled out all the environment variables, and even added a custom domain (app.anticarbs.com) for nonlocal deployments. I notice the repo doesn't actually have an Next likely culprit to look at is the postgres integration, so maybe I'll learn something there. |
Also having this issue. This repo doesn't seem to have any support though? |
Just merged #323 which should fix this issue! Anyone still facing this problem? |
Same here, i can only get to the Github login screen. After authorizing with Github it returns back to Login. No other pages work and returns 404 on Github page. Triple checked env and its deployed to custom domain: https://support.plus |
Not sure if it's the same, but I was getting 404 after succesful login via github. But if your app doesn't have any blog posts created, it redirects to 404, in code, if posts == null redirect to 404. Try to create posts. Unless you have a different issue. The repo worked for me |
Hey @cameronking4, I ran into the same issue, and I solved it by setting up my custom domain correctly in Vercel:
You can learn more about Vercel Nameservers and wildcard domains here: https://vercel.com/docs/projects/domains/add-a-domain#using-wildcard-domain. You've probably moved to other things since then, but in case you want to try it or if someone else runs into the problem. |
Hi, I have the problem that "it works" locally, using I deployed the template directly, creating my GitHub repo from it. I did not use any custom domain in the first attempt but sticked to I have not added wildcard domains. I would have to change the name servers in my DNS, which I did not want to do without knowing whether that is really necessary. For the auto-generated domain, I can't even add wildcard domains. Again, both domains (auto-generated and custom) only show a 404 page. Am I missing anything? |
@ybidois, I've tried your approach just now. However, that does not seem to work either. I can only assume there is some issue in the codebase. @steven-tey, can you help and point me into the right direction?
When pinging the domain and subdomains, I am getting the following at the moment:
The IP addresses for Again, "it works on my machine", using |
@ybidois and @steven-tey, I finally made it work! The one thing that was missing was to set the |
@ybidois @steven-tey @ThomasBarnekow For my project |
@cameronking4 Were you able to solve the problem? I also have the same problem. |
I've tried to deploy 3 times from scratch following the guide and their clone/deploy page and still getting a 404 as well. |
same |
Hey there, Running into a bit of a wall with this one – it's a known issue, but I'm drawing blanks on support from Vercel or the community. Could really use a hand to sort it out. Thanks!
I have Github callback URL http://localhost:3000/api/auth/callback/github I can see the information returned from github after logging in, the thing is the session is missing, I can see in my prisma studio I also tested https://github.com/nextauthjs/next-auth-example with the same setup and it worked! this is what I get when I change the callback URL it to I get
and when I go to
|
@ThomasBarnekow solution worked for me locally so http://app.localhost:3000 now shows: I have setup Github App callbacks url correctly. |
I have the same issue @piclez . Did everyone deploy from the vercel template GUI first ? |
@RobSteele I got it working setting |
Steps to check from the guide:
|
Yes, not working in production mode (any route except root wich points to home) results in 404. in localhost it works as expected |
Same here, any solution ? |
Have you find a solution ? |
This was very helpful. Thanks! also, for those still facing the issue, do the above. Here is how I fixed mine. My hostname or NEXT_PUBLIC_ROOT_DOMAIN is "ainime.me"
I hope this helps, I spent 2 days on it. |
Thanks for this it solved my problem. But I'm still unable to access the sub domains with 404. Have you changed anything to cater for that? |
Thank you! This solved it for me. |
I am also here right now hahah |
AAAHHH! If you are still here like I was. if you set the NEXT_PUBLIC_ROOT_DOMAIN make sure here is no ENTER/RETURN sim bole or extra space at the hostname you put in .... |
This worked! Thanks tutnyal! Nit: Rewriting the code as a code block below as in the above format tildas aren't copied when someone copies them directly.
|
I fixed the issue by first ensuring wildcard domains like profile(profile) {
return {
id: profile.id.toString(),
name: profile.name || profile.login,
gh_username: profile.login,
email: profile.email || `${profile.login}@no-email.com`,
image: profile.avatar_url,
};
} Additionally, I added a fallback string to my |
I followed this guide with the exact steps and deployed the application. Now I get 404 errors on every page. Looks like a lot of other people have faced the same issue, but the solution replies to those are not satisfactory/up to date
The text was updated successfully, but these errors were encountered: