!NEXOS CREATOR
addImportsDir does work for types but doesn't work at runtime
Try using
addImports
instead of addImportsDir
. Since you're importing an entire directory, Nuxt might not be handling the enums properly at runtime. Explicitly importing each enum using addImports
should resolve the issue.27 replies
Redirects
For Server Routes: https://nitro.build/guide/routing
try useRoute: https://nuxt.com/docs/api/composables/use-route
8 replies
How to add blog post to sitemap.xml with Nuxt Content v3 ?
check out this: https://nuxt.com/modules/sitemap
7 replies
Nuxt Sitemap module does nothing
Its look like this https://discord.com/channels/473401852243869706/1080872789940121732/1274268691223281726
20 replies
Nuxt build error (At least one <template> or <script> is required in a single file component)
It looks like your
Callout.vue
file is empty.
Make sure the file includes at least one <template>
or <script>
block, as required for single file components.19 replies
Nuxt Sitemap module does nothing
In development mode, the sitemap won't be generated automatically.
To preview the sitemap, try running:
This will generate the
sitemap.xml
file for you to view.
Alternatively, in production, you can run:
Once deployed, the sitemap will be available at https://example.com/sitemap.xml
.20 replies