Next.js Discord

Discord Forum

Help with vercel

Answered
Erythrina gall wasp posted this in #help-forum
Open in Discord
Avatar
Erythrina gall waspOP
My code works on local host but idk why its sjowing errors how fo i fix it :( how do i put it on my own domajn https://github.com/dotABhay/Portfolio my code is hete
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Answered by risky
the errors look like eslint is getting confused, you should be able to disable it and it work fine
https://nextjs.org/docs/app/api-reference/next-config-js/eslint
View full answer

250 Replies

Avatar
the errors look like eslint is getting confused, you should be able to disable it and it work fine
https://nextjs.org/docs/app/api-reference/next-config-js/eslint
Answer
Avatar
(well you say it works well from local dev mode, so it should work in actual prod)
Avatar
Erythrina gall waspOP
oooo
okayy
i will let you know it if works :)
thank you so much!!
::))))
Avatar
Erythrina gall waspOP
Image
Image
it showed this
:(
should i rename it from
Avatar
either use next.config.js OR if you want to still use next.config.mjs, use export default { instead of module.exports = {
Avatar
Erythrina gall waspOP
mjs
to
js?
i renamed it
will it work?
Avatar
should
Avatar
Erythrina gall waspOP
okiii
btww
thank you so much
it means a lot
:)
Avatar
so it works?
Avatar
Erythrina gall waspOP
IT WORKEDDDDDD
YAYYYYYY
:))))
Avatar
yay
Avatar
Erythrina gall waspOP
thank you so muchhhh
Avatar
np, feel free to open another thread if you have any other issues!
Avatar
Erythrina gall waspOP
i kinda have a problem
Avatar
also nice site, you should post it in #nextjs-showcase!
Avatar
Erythrina gall waspOP
i have a custom domain
and
i tried
using
it
on my website
A
Name

@
Value

76.76.21.21
it says this
and i went to cloud fare
it says this
Image
Avatar
you already have CNAME for the root
Avatar
Erythrina gall waspOP
oooo
should i delete my CNAME?
Avatar
ye
Avatar
Erythrina gall waspOP
okiii
thank youuuu
whats this now
:(
Image
Avatar
if you have A, you dont need CNAME, so choose which you want to use
oh for www, you prob have cname of a listed (from whatever you used before)
Avatar
Erythrina gall waspOP
Image
it says both tho
i removed it and added the thing from above
that 76 ip
Avatar
look in your list in cloudflare for the www.
Avatar
Erythrina gall waspOP
okay
here
Image
Avatar
get rid of all of them then (and make either the vercel ip or the cname for www)
Avatar
Erythrina gall waspOP
okay
i dont need the
github
ip addresses?
Avatar
ye
Avatar
Erythrina gall waspOP
okii
my domain says
page redirected too many times
Image
Image
Avatar
this looks cursed
are you new to networking?
Avatar
Erythrina gall waspOP
yes
😭
Avatar
what are you trying to do
Avatar
no i know the issue
Avatar
Erythrina gall waspOP
make a portfolio
Avatar
let me get ss to help
Avatar
Erythrina gall waspOP
ss?
of what
Avatar
is he trying to route his domain to vercel or what
Avatar
make sure its full
Image
dont ask why it needs it, but somehow cloudflare dies
Avatar
Erythrina gall waspOP
Image
Avatar
PAAUSE
Avatar
Erythrina gall waspOP
ssl and tsl?
Avatar
yes
Avatar
Erythrina gall waspOP
should i fill them?
okay
Avatar
is there a reason u are redirecting to www=
Avatar
Erythrina gall waspOP
which one do i take
Image
Avatar
www.xyz.com -> xyz.com is my fav
Avatar
Erythrina gall waspOP
idk
it said
reccomended
thats why
Avatar
turn that shit off
u dont need that
Avatar
full
Avatar
Erythrina gall waspOP
okay
Avatar
www is basically a old convention
subdomain for the actualy frontend
was it back then
Avatar
that not even vercel follows themself
Avatar
also
u dont need to modify your ssl settings in cloudflare
just point your root cname to vercel
thats it
Avatar
you do unless you disable proxy
Avatar
yeah
Avatar
and you can only do root cname on cloudflare because they do "cname flattening", so its not true cname
Avatar
yeah
Avatar
Erythrina gall waspOP
oo
okay
so
i only
put
cname
and nothing else?
Avatar
👍
Avatar
Erythrina gall waspOP
oki
and
i shouldnt
redirect
from
abhaysinghal.com.np to www.
Avatar
no
Avatar
Erythrina gall waspOP
thank you so much
:)
its my first time doing it
Avatar
redirect the www to the root tho
:)
Avatar
Erythrina gall waspOP
imma fill out my ssl
Avatar
yeah
Avatar
Erythrina gall waspOP
okay
Avatar
dont do it in vercel tho
Avatar
its only one setting, should be simple
Avatar
use cloudflare rules for that
Avatar
i mean do both (cant hurt)
Avatar
Erythrina gall waspOP
i did
is this it?
Image
Avatar
yeah
you should be able to connect to page now
Avatar
that will work if u have proxy enabled yeah
Avatar
Erythrina gall waspOP
this option?
Image
oki
Avatar
which you honestly should do as static assets get cached there so your vercel usage doesnt go as huge
Avatar
Erythrina gall waspOP
it shows this now
Image
Avatar
uh
Avatar
Erythrina gall waspOP
this is so hard :(
Avatar
does it provide a way to verify, as i have never had this
for me i get better pagespeed with cf proxy lel
Avatar
Erythrina gall waspOP
wait
imma delete
and
try again
Avatar
leak your cloudflare stats
:wow:
Avatar
huge
Image
Avatar
Image
this is from my minecraft network
Avatar
uh ohh ok makes more sense
Avatar
yeahh but
thats only web traffic
i dont even know why the cached is at 1 percent lmao
Avatar
because 51mb is cached
out of 3gb
:)
Avatar
but why :sad:
Avatar
Erythrina gall waspOP
Unable to redirect to "abhaysinghal.com.np", because that domain is not added to the project.
it meeks
showing this
:(
i tried 3 times
what do i do
Avatar
show your projects domains tab
/settings/domains
Avatar
Erythrina gall waspOP
Image
Avatar
remove the vercel domain
press on edit and remove
Avatar
Erythrina gall waspOP
okay
Image
still the same issue
Avatar
u basically copy pasted that?
and pressed on add
?
Avatar
Erythrina gall waspOP
yes
Avatar
also you have refreshed page and everything right
Avatar
thats weird
Image
i just added this and its working fine
Avatar
Erythrina gall waspOP
okay
it worked
Avatar
as it lets me try to add yours but it wasnts verification ofc (as its been added before)
Image
Avatar
Erythrina gall waspOP
imma try
wait
it kept showing the same problem so i tried the reccomemned one but now it says this
Image
it seems tht
Avatar
hmm try to ctrl shift r
Avatar
Erythrina gall waspOP
it has a probelm
with only
my domain
:(
text.com works
Avatar
all i know is it never was this chaos for all of mine
Avatar
Erythrina gall waspOP
see
Image
Avatar
yeah nah
i can help you out via anydesk if u want
Avatar
Erythrina gall waspOP
wait
it doesnt have a problem
with
my other domain
les gooo
just need to wait a few hours to change the name servers
Image
Avatar
cloudflare does that instantly
u just need to clear your browser cache
Avatar
Erythrina gall waspOP
nah
like
i need to
connect my domain
to cloud fare
😭
and my host takes some time to change the name server
Avatar
what domain?
wasnt that domain already on cloudflare
i dont get it
Avatar
Baird's Sparrow
h
Avatar
Erythrina gall waspOP
okay
this worked
Image
why does it show this now :(
Image
Avatar
clear your cache
Avatar
Erythrina gall waspOP
okay
Avatar
go into your console
tick disable cache
Image
Image
while in console u press long on the reload button
and pick the third option
ur site works fine for me btw
Avatar
Erythrina gall waspOP
okay
thank yoiu
Avatar
same
now you should post in #nextjs-showcase if not already so people get to see it - as good insporation at least
Avatar
Erythrina gall waspOP
okayyy
Avatar
Erythrina gall waspOP
thank yall man
:)