!NEXOS CREATOR
!NEXOS CREATOR
NNuxt
Created by Mobyr on 2/7/2025 in #❓・help
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
NNuxt
Created by ivancic_josip on 1/28/2025 in #❓・help
Redirects
8 replies
NNuxt
Created by ivancic_josip on 1/28/2025 in #❓・help
Redirects
Define Route Rules in nuxt.config.ts
export default defineNuxtConfig({
routeRules: {
'/my-old-route': {
redirect: { to: '/new-route', statusCode: 302 }
}
// ...
}
})
export default defineNuxtConfig({
routeRules: {
'/my-old-route': {
redirect: { to: '/new-route', statusCode: 302 }
}
// ...
}
})
8 replies
NNuxt
Created by Ress on 1/26/2025 in #❓・help
How to add blog post to sitemap.xml with Nuxt Content v3 ?
7 replies
NNuxt
Created by wszymanski on 9/6/2024 in #❓・help
Nuxt Sitemap module does nothing
It error from vue/server-render module, upgrade your nuxt app
20 replies
NNuxt
Created by wszymanski on 9/6/2024 in #❓・help
Nuxt Sitemap module does nothing
20 replies
NNuxt
Created by timmaier on 9/6/2024 in #❓・help
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
NNuxt
Created by wszymanski on 9/6/2024 in #❓・help
Nuxt Sitemap module does nothing
In development mode, the sitemap won't be generated automatically. To preview the sitemap, try running:
npx nuxi preview
npx nuxi preview
This will generate the sitemap.xml file for you to view. Alternatively, in production, you can run:
npx nuxi build
npx nuxi build
Once deployed, the sitemap will be available at https://example.com/sitemap.xml.
20 replies