Next.js Discord

Discord Forum

Serverless functions with .rsc vs without

Unanswered
Ant posted this in #help-forum
Open in Discord
AntOP
I am not using API handlers, however I have a couple of regular SSR routes. When deployed to Vercel on Hobby plan, in a Functions tab, there are two variants for the same route: one ends with ".rsc" and and the other does not. What is the difference exactly?
I noticed that the one without ".rsc" is used for example when I'm loading the page from scratch by typing the URL with all parameters directly in the browser, and the other one is used when I'm navigating on the page using next/link. Also, the former takes about 7-9 seconds to load (sometimes times out) and the latter usually loads under one second.

0 Replies