News for hackers. Stuff that matters.
Re:Next.js 8 released by thelittleone on Monday February 11, 2019 @06:41AM (#19133703)
Can you share what you found limiting with nuxtjs routing? Genuinely curious.
Re:Next.js 8 released by adevx on Monday February 11, 2019 @12:00PM (#19135919)
As you probably know, Nuxt.js uses a folder to url mapping, so say /src/views/contact/index.vue maps to /contact In my case I wanted to be able to change the url depending on the language of the user. And not by prefixing it with a /en/contact vs /de/kontact. To make matters more complicated, I serve multiple domains from the same node/express instance and determine the correct site data to render based on the domainname. There were plugins and hacks to make this somewhat possible, but it felt like going against the philosophy of nuxt.js. I still think it's a fantastic framework if your needs align with this type of routing. I ended up using the Vue SSR HackerNews repo as a template.
Re:Next.js 8 released by Raxen1 on Monday February 11, 2019 @03:23PM (#19137927)
You can use custom routing and its actually recommended for bigger projects you can check it here if you want https://vuejsdevelopers.com/2018/07/16/7-tips-large-nuxt-app...
Re:Next.js 8 released by adevx on Monday February 11, 2019 @04:00PM (#19138296)
Thanks for the link. Good to see this is much easier now.