Is there a way to fetch files from an external server, such as a CDN, using the @nuxtjs/content module? This would allow me to manage the .md files independently without relying on Nuxt.js.
In my current nuxt.config.js
file, I have the following setup:
export default {
...
content: {
dir: 'http://some-cdn.xyz/content/'
},
...
}
My goal is to then load this content in the pages/_slug.vue file:
<template>
<div>
<NuxtContent :document="doc" />
</div>
</template>
<script>
export default {
async asyncData({ $content, params }) {
const doc = await $content(params.slug || 'index').fetch();
return { doc };
},
};
</script>
However, when trying to access http://localhost:3000/some-page, I receive the error message "/some-page not found" from Nuxt.js. What steps should I take to make this setup work, or is it even possible with my current configuration?