Sure.
In my nuxt.config.js
This works:
modules: [
'@nuxtjs/style-resources',
[
"@nuxtjs/prismic", {
"endpoint": "https://ventur.cdn.prismic.io/api/v2",
"apiOptions": {
"routes": [
{
"type": "page",
"path": "/:uid"
},
{
"type": "case_study",
"path": "/experience/:uid"
},
{
"type": "blog_post",
"path": "/insights/:uid"
}
]
}
}
],
["nuxt-sm"]
],
But if I add the following lines, this doesn't work:
modules: [
'@nuxtjs/style-resources',
[
"@nuxtjs/prismic", {
"endpoint": "https://ventur.cdn.prismic.io/api/v2",
"apiOptions": {
"routes": [
{
"type": "page",
"path": "/:uid"
},
{
"uid": "meet-the-team",
"path": "/:uid"
},
{
"type": "case_study",
"path": "/experience/:uid"
},
{
"type": "blog_post",
"path": "/insights/:uid"
}
]
}
}
],
["nuxt-sm"]
],
I get the error:
Error
Unexpected status code [400] on URL https://ventur.cdn.prismic.io/api/v2/documents/search?routes=%5B%7B%22type%22%3A%22page%22%2C%22path%22%3A%22%2F%3Auid%22%7D%2C%7B%22uid%22%3A%22meet-the-team%22%2C%22path%22%3A%22%2F%3Auid%22%7D%2C%7B%22type%22%3A%22case_study%22%2C%22path%22%3A%22%2Fexperience%2F%3Auid%22%7D%2C%7B%22type%22%3A%22blog_post%22%2C%22path%22%3A%22%2Finsights%2F%3Auid%22%7D%5D&page=1&pageSize=1&ref=X7JN2xIAACEAndh_&q=%5B%5Bat(document.type%2C%20%22header_menu%22)%5D%5D