Help with vercel
Answered
Erythrina gall wasp posted this in #help-forum
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
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
https://nextjs.org/docs/app/api-reference/next-config-js/eslint
250 Replies
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
https://nextjs.org/docs/app/api-reference/next-config-js/eslint
Answer
(well you say it works well from local dev mode, so it should work in actual prod)
Erythrina gall waspOP
oooo
okayy
i will let you know it if works :)
thank you so much!!
::))))
Erythrina gall waspOP
it showed this
:(
should i rename it from
either use
next.config.js
OR if you want to still use next.config.mjs
, use export default {
instead of module.exports = {
Erythrina gall waspOP
mjs
to
js?
i renamed it
will it work?
should
Erythrina gall waspOP
okiii
btww
thank you so much
it means a lot
:)
so it works?
Erythrina gall waspOP
IT WORKEDDDDDD
YAYYYYYY
:))))
yay
Erythrina gall waspOP
thank you so muchhhh
np, feel free to open another thread if you have any other issues!
Erythrina gall waspOP
i kinda have a problem
also nice site, you should post it in #nextjs-showcase!
Erythrina gall waspOP
i have a custom domain
and
i tried
using
it
on my website
A
Name
@
Value
76.76.21.21
Name
@
Value
76.76.21.21
it says this
and i went to cloud fare
it says this
you already have CNAME for the root
Erythrina gall waspOP
oooo
should i delete my CNAME?
ye
Erythrina gall waspOP
okiii
thank youuuu
whats this now
:(
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)
Erythrina gall waspOP
it says both tho
i removed it and added the thing from above
that 76 ip
look in your list in cloudflare for the www.
Erythrina gall waspOP
okay
here
get rid of all of them then (and make either the vercel ip or the cname for www)
Erythrina gall waspOP
okay
i dont need the
github
ip addresses?
ye
Erythrina gall waspOP
okii
my domain says
page redirected too many times
this looks cursed
are you new to networking?
Erythrina gall waspOP
yes
😭
what are you trying to do
no i know the issue
Erythrina gall waspOP
make a portfolio
let me get ss to help
Erythrina gall waspOP
ss?
of what
is he trying to route his domain to vercel or what
dont ask why it needs it, but somehow cloudflare dies
Erythrina gall waspOP
PAAUSE
Erythrina gall waspOP
ssl and tsl?
yes
Erythrina gall waspOP
should i fill them?
okay
is there a reason u are redirecting to www=
Erythrina gall waspOP
which one do i take
www.xyz.com -> xyz.com is my fav
Erythrina gall waspOP
idk
it said
reccomended
thats why
turn that shit off
u dont need that
full
Erythrina gall waspOP
okay
also
u dont need to modify your ssl settings in cloudflare
just point your root cname to vercel
thats it
you do unless you disable proxy
yeah
and you can only do root cname on cloudflare because they do "cname flattening", so its not true cname
yeah
Erythrina gall waspOP
oo
okay
so
i only
put
cname
and nothing else?
👍
Erythrina gall waspOP
oki
and
i shouldnt
redirect
from
abhaysinghal.com.np to www.
no
Erythrina gall waspOP
thank you so much
:)
its my first time doing it
redirect the www to the root tho
:)
Erythrina gall waspOP
imma fill out my ssl
yeah
Erythrina gall waspOP
okay
dont do it in vercel tho
its only one setting, should be simple
use cloudflare rules for that
i mean do both (cant hurt)
Erythrina gall waspOP
i did
is this it?
yeah
you should be able to connect to page now
that will work if u have proxy enabled yeah
Erythrina gall waspOP
this option?
oki
which you honestly should do as static assets get cached there so your vercel usage doesnt go as huge
Erythrina gall waspOP
it shows this now
uh
Erythrina gall waspOP
this is so hard :(
does it provide a way to verify, as i have never had this
for me i get better pagespeed with cf proxy lel
Erythrina gall waspOP
wait
imma delete
and
try again
leak your cloudflare stats
this is from my minecraft network
uh ohh ok makes more sense
but why
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
show your projects domains tab
/settings/domains
Erythrina gall waspOP
remove the vercel domain
press on edit and remove
Erythrina gall waspOP
okay
still the same issue
Erythrina gall waspOP
yes
also you have refreshed page and everything right
Erythrina gall waspOP
okay
it worked
Erythrina gall waspOP
imma try
wait
it kept showing the same problem so i tried the reccomemned one but now it says this
it seems tht
hmm try to
ctrl shift r
Erythrina gall waspOP
it has a probelm
with only
my domain
:(
text.com works
all i know is it never was this chaos for all of mine
Erythrina gall waspOP
see
yeah nah
i can help you out via anydesk if u want
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
cloudflare does that instantly
u just need to clear your browser cache
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
Baird's Sparrow
h
Erythrina gall waspOP
okay
this worked
why does it show this now :(
clear your cache
Erythrina gall waspOP
okay
go into your console
tick disable cache
while in console u press long on the reload button
and pick the third option
ur site works fine for me btw
Erythrina gall waspOP
okay
thank yoiu
same
Erythrina gall waspOP
okayyy
Erythrina gall waspOP
thank yall man
:)