creogen
creogen
NNuxt
Created by creogen on 2/11/2025 in #❓・help
Best Practices for SSG in Nuxt 2 with External Router Structure?
Good day, beautiful fellow developers! I hope you're all having an amazing day! I'm currently working on a Nuxt 2 project that combines local pages with a router structure fetched from an external API, which is then used with the nuxt-community/router-module. Our site works both in SSR for development and SSG for production. While it's functional, I’m not entirely happy with our current implementation and am seeking for best practices to improve the setup, particularly for optimizing performance, scalability, and ease of maintenance. If anyone has experience with this or can share some insights, I'd love to hear your thoughts. Thanks in advance for any help!
6 replies
NNuxt
Created by creogen on 7/6/2024 in #❓・help
How to update the query param in the URL without causing re-rendering?
Good day, beautiful people! Can someone explain to me why changing the query in the URL leads to page re-rendering? More importantly, how can I avoid it? Using history.replaceState() or history.pushState() works just fine, but why is it impossible to use router methods instead? When you are using a router.replace with the same path changing only the query in Vue.js doesn't cause the re-rendering of all tree. But it does in Nuxt and it's confusing me a lot.
1 replies