how can i add dns records in vercel?
Answered
American Robin posted this in #help-forum
American RobinOP
i dont know how this workls
55 Replies
American RobinOP
im using clerk
and have to add those dns records
American RobinOP
i cant add those
i get a 404 error when i click here
Same, but go here: https://vercel.com/dashboard/domains
American RobinOP
oh it worked there
oke i see
i have to add now all there right?
You'll need to add the records that Clerk specify
American RobinOP
the CNAME would be: for example, clerk.mydomain.com
and then frontend-api.clerk.services
Never used Clerk. What does it say?
American RobinOP
or just clerk
Answer
American RobinOP
ah oke thanks
it says i have to wait 24 hours
Usually much shorter
American RobinOP
the domain i added is only the name right
not like www.domainname.com
just domainname.com
only used the dev clerk so far, first time prod
oh
its active now
that was fast
nice
American RobinOP
thanks alot!
No worries
American RobinOP
quick question, can i fetch data from my api, in a layout? @Mozzy
You should be able to yes
I would make that a separate component though
American RobinOP
import { NextRequest, NextResponse } from "next/server";
export async function GET(req: NextRequest) {
return NextResponse.json({
message: "Hello World",
});
}
const response = await axios.get("api/language");
console.log(response);
ah wait
nah still not workin
changed to /api/language
Needs the https://[...]
Should be
American RobinOP
if i try it like this
its loading and loading nothing happens
any idea why?
Add some console.log()s to see what is happening
American RobinOP
ok smth weird is happening
Please create another thread for this
American RobinOP
oke
(Also mark whatever message solved your original problem as the solution)