DANANZ M1
DANANZ M1
NNuxt
Created by DANANZ M1 on 4/29/2025 in #❓・help
Layered Nuxt apps: How to remove routeRules defined in a base layer from an extending layer?
Okay, I'm working with layered Nuxt applications. I have app1 which is the base layer, and app2 which extends app1. In app1, I've configured several routeRules in the nuxt.config.ts. Now, in app2, I want to effectively remove or override some of the routeRules that were set in app1. How can I achieve this? For example, if app1 has a routeRules entry like this:
// app1/nuxt.config.ts
export default defineNuxtConfig({
routeRules: {
'/some-path': { redirect: '/new-path' },
// ... other rules
}
})
// app1/nuxt.config.ts
export default defineNuxtConfig({
routeRules: {
'/some-path': { redirect: '/new-path' },
// ... other rules
}
})
In app2, I want to somehow disable or remove the /some-path redirect rule that was defined in app1. Crucially, I don't want to have to explicitly list each path I want to remove in app2 (like telling Nuxt hooks to ignore '/some-path'). I'm looking for a more automatic way for app2 to override or discard specific routeRules from app1 without manual intervention for each rule I want to discard. What's the recommended approach for this in a layered setup?
5 replies
NNuxt
Created by DANANZ M1 on 12/11/2024 in #❓・help
unminimize the function in build
No description
7 replies
NNuxt
Created by DANANZ M1 on 11/11/2024 in #❓・help
Nuxt Memory Leak
No description
5 replies
NNuxt
Created by DANANZ M1 on 9/30/2024 in #❓・help
get rid of fallback warnings
No description
1 replies
NNuxt
Created by DANANZ M1 on 7/28/2024 in #❓・help
Integrate nuxt devtools with vs code
No description
8 replies
NNuxt
Created by DANANZ M1 on 7/17/2024 in #❓・help
Saving a tsx component throws 500
No description
1 replies
NNuxt
Created by DANANZ M1 on 5/22/2024 in #❓・help
Inline route rules not working, not enough information regarding the error
No description
1 replies
NNuxt
Created by DANANZ M1 on 5/21/2024 in #❓・help
why nuxt ignores my head tags when using ssr:false?
I saw that this PR: https://github.com/nuxt/framework/pull/8975 should use the head tags for ssr:false pages but its not working in my case, its only taking fallbacks from the nuxt.config.ts file
9 replies
NNuxt
Created by DANANZ M1 on 4/11/2024 in #❓・help
Nuxt auto optimize all packages / opt out optimization
No description
4 replies
NNuxt
Created by DANANZ M1 on 3/24/2024 in #❓・help
Why does Nuxt Dev Tools does not have the ability to inspect a component's state ?
I remember Vue 2 had a great dev tools that could preview each component state like data and props and computeds, I've tried looking this feature in Nuxt devtools but it doesnt have it, and Vue 3 devtools are not working anymore.
4 replies
NNuxt
Created by DANANZ M1 on 3/7/2024 in #❓・help
Missing NODE_ENV in nuxt
does nuxt has an alternative to config.NODE_ENV === 'development'? I mean, how can I tell if Im in local devlopment server or production build?
16 replies
NNuxt
Created by DANANZ M1 on 7/12/2023 in #❓・help
i18n beta 13, must use $rt
No description
1 replies
NNuxt
Created by DANANZ M1 on 5/23/2023 in #❓・help
Renderless Routes
No description
1 replies
NNuxt
Created by DANANZ M1 on 5/18/2023 in #❓・help
How to auto import components from .ts file?
I have a transitions.ts that exports multiple components, I want to be able to access these component globally, right now Nuxt doesnt handle these cases any suggestions?
1 replies