Replies: 2 comments
-
It is not possible to use I didn't use the sitemap module, but as I see in the docs you can make this call using easily using export default async () => {
const contents = await $fetch('/api/_content/query')
const routes = result.map(r => r.path)
return routes
} |
Beta Was this translation helpful? Give feedback.
0 replies
-
I finally opted to retrieve my JSON files this way const getWebPages = () => import('../content/fr/web-pages').then(r => r.default || r) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to generate a sitemap.xml file using the module "funkenstudio/sitemap-module-nuxt-3" and a small function calling on all the content managed by @nuxt/content
./helpers/dynamicRoutes.ts
I don't know how to import queryContent(), I get an error :
ERROR Cannot find module '#app'
how to use (import) queryContent() outside the app ?
Beta Was this translation helpful? Give feedback.
All reactions