#next 13 rsc in url

1 messages · Page 1 of 1 (latest)

scenic bison
#

Is there any way to remove rsc from page URL in next 13 and keep prefetch feature?

molten barnBOT
#

Hi @scenic bison. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

The ?_rsc=... query parameter you're seeing in the URL is related to React Server Components (RSC) in Next.js. This parameter is used for fetching/streaming your server components.

However, based on the information provided in the extracts, there's no direct way mentioned to remove the ?_rsc=... from the URL while keeping the prefetch feature.

It's important to note that this parameter is a part of the internal workings of Next.js and React Server Components, and it's generally not recommended to interfere with these unless you have a specific reason to do so.

If you're seeing this parameter in places where it shouldn't be (like Google Search Console as mentioned in the Github Issue (https://github.com/vercel/next.js/issues/58419)), it might be worth raising an issue with the Next.js team on their Github page. They might be able to provide more insight or potential solutions.

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: