As soon as we add the second route resolver, all the images fail to load. We are using "@nuxtjs/prismic": "^3.0.1" in our project in case it's relevant.
We suspect the names used in the resolver don't match, but like to confirm before investigating further.
Looking at your nuxt.config.ts file, you've defined two routes, one for 'hoofdcategorie' and another for 'subcategorie'. The path for 'subcategorie' is dependent on 'hoofdcategorie', which seems to be correctly defined.
However, without more information about the structure of your Prismic documents and the exact error messages you're encountering, it's difficult to pinpoint the exact issue.
Here are a few things you could check:
Your folder names must match the route resolver paths. For example your path is /assortiment/:hoofdcategorie/:uid/' but your file name is [id].vue it should be uid to populate this correctly.
Ensure that the 'hoofdcategorie' field in your 'subcategorie' documents in Prismic matches the UID of the 'hoofdcategorie' documents. The route resolver uses this field to construct the URL.
Check if the 'hoofdcategorie' field in your 'subcategorie' documents is a Content Relationship field. This is necessary for the route resolver to be able to link the two document types.
Make sure that the names used in the resolver match the API ID of the content relationship field in the page type.
Check the console for any error messages. These could provide more insight into what's causing the images to fail to load.
Ensure that your folder structure in Nuxt matches the paths defined in your route resolver.
If you've checked all of these and are still encountering issues, it might be a more complex problem that needs further investigation.