Next.js Discord

Discord Forum

If I request `rewrites` in next.config.js deployed to Vercel, will it be requested to Edge runtime?

Unanswered
Australian Freshwater Crocodile posted this in #help-forum
Open in Discord
Australian Freshwater CrocodileOP
If I request rewrites in next.config.js deployed to Vercel, will it be requested to Edge runtime? Or is it requested to a Serverless function?
Also, does the request that rewrited increase the Usage count by 1 on Vercel platform?

2 Replies

Serverless Functions run on the edge runtime by default
As for whether this uses edge or not, i dont remember if this even uses the edge/node runtime at all.