NuxtLink elements render on CF worker as routerlink since 4.2
Hi, since nuxt 4.2, my NuxtLink elements on server side on cloudflare module deploy only render as routerlink, not clickable anchors as before, and do not render their contents either, until the client side loads.
I have been looking around everywhere, but I can not seem to find any related issue.
3 Replies
Hi @O. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
I'm sorry, but the knowledge sources provided do not contain any explicit information about NuxtLink rendering as RouterLink (instead of anchor tags) on the server side in Nuxt 4.2, specifically when deployed to Cloudflare Workers. There are several pull requests and issues related to NuxtLink behavior, slot typing, and handling of anchor tags for hashes or external links, but none directly address the problem you described regarding SSR output on Cloudflare Workers in Nuxt 4.2.
If this is a regression or a new issue, it may not have been documented in the sources above. You may want to open a new issue on the Nuxt GitHub repository with a minimal reproduction to get more targeted help from the Nuxt team.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
<@442299012436066304> Kapa.ai is still learning and improving, please let me know how I did by reacting below.
ok, the issue was
rollupConfig: {
plugins: [vue()]
},
had to be added to nitro settings to work