Nuxt routing when using content folder
Hi, I'm new to Nuxt and JS frameworks in general and struggling to understand something.
I've set up a content collection for recipes using
For example, I don't have
Am I missing something? Can you not mix
I've set up a content collection for recipes using
@nuxt/content, with a catch-all template for recipe pages. However, it feels like when using content collections, every page on my site must have a corresponding content file.For example, I don't have
content/index.md, but I do have /pages/index.vue. Because of this setup, I get a 500 error (route is not defined).Am I missing something? Can you not mix
.vue pages with content-based routing?
