can someone help me with the nextjs hosting
Answered
Satin Angora posted this in #help-forum
Satin AngoraOP
can someone help me with a free next js hosting and help me set it up it will be very helpful
Answered by Asian black bear
It literally tells you that it doesn't recognize any Resend API key that you should probably add to the environment variables on Vercel.
8 Replies
@Satin Angora can someone help me with a free next js hosting and help me set it up it will be very helpful
Dutch
what you need help for
@Dutch what you need help for
Satin AngoraOP
Error: Missing API key. Pass it to the constructor
at new <anonymous> (.next/server/app/api/send/route.js:1:5399)
at 3728 (.next/server/app/api/send/route.js:1:5108)
at t (.next/server/webpack-runtime.js:1:127)
at r (.next/server/app/api/send/route.js:1:8601)
at <unknown> (.next/server/app/api/send/route.js:1:8632)
at t.X (.next/server/webpack-runtime.js:1:1191)
at <unknown> (.next/server/app/api/send/route.js:1:8614)
at Object.<anonymous> (.next/server/app/api/send/route.js:1:8659)
Error: Command "npm run build" exited with 1
new Resend("re_123")
at new <anonymous> (.next/server/app/api/send/route.js:1:5399)
at 3728 (.next/server/app/api/send/route.js:1:5108)
at t (.next/server/webpack-runtime.js:1:127)
at r (.next/server/app/api/send/route.js:1:8601)
at <unknown> (.next/server/app/api/send/route.js:1:8632)
at t.X (.next/server/webpack-runtime.js:1:1191)
at <unknown> (.next/server/app/api/send/route.js:1:8614)
at Object.<anonymous> (.next/server/app/api/send/route.js:1:8659)
Build error occurred[Error: Failed to collect page data for /api/send] { type: 'Error' }
Error: Command "npm run build" exited with 1
when i put this on vercel i get this message
@Satin Angora Error: Missing API key. Pass it to the constructor `new Resend("re_123")`
at new <anonymous> (.next/server/app/api/send/route.js:1:5399)
at 3728 (.next/server/app/api/send/route.js:1:5108)
at t (.next/server/webpack-runtime.js:1:127)
at r (.next/server/app/api/send/route.js:1:8601)
at <unknown> (.next/server/app/api/send/route.js:1:8632)
at t.X (.next/server/webpack-runtime.js:1:1191)
at <unknown> (.next/server/app/api/send/route.js:1:8614)
at Object.<anonymous> (.next/server/app/api/send/route.js:1:8659)
> Build error occurred
[Error: Failed to collect page data for /api/send] { type: 'Error' }
Error: Command "npm run build" exited with 1
Asian black bear
It literally tells you that it doesn't recognize any Resend API key that you should probably add to the environment variables on Vercel.
Answer
Satin AngoraOP
and how can i do that?
Asian black bear
Satin AngoraOP
and there i need to put the key inside?
Asian black bear
Probably. How have you done this on your local machine?