N
Nuxt2y ago
PaulG

Catch-all except something

Is there a way by using Catch-all […slug].vue To escape certain paths and do not catch them?
6 Replies
Fabian B.
Fabian B.2y ago
Sure, just add a vue file into the same directory with this path you don’t want to catch
PaulG
PaulGOP2y ago
Well that approach I know, but it won’t work for this case, I need something more robust like regex, it’s to many paths, to add files
Fabian B.
Fabian B.2y ago
How should that work in your opinion?
PaulG
PaulGOP2y ago
Would be good to have something in nuxt.config router
Fabian B.
Fabian B.2y ago
Have you looked at pages:extend in the nuxt config? https://github.com/nuxt/nuxt/issues/12823
GitHub
router.extendRoutes support in nuxt.config.js for Nuxt 3 · Issue #1...
Environment PS D:\nuxt3-app> npx nuxi info Nuxt CLI v3.0.0-27288761.d3fb512 11:17:49 RootDir: D:\nuxt3-app 11:17:52 Nuxt project info: 11:17:52 Operating System: Windows_NT Node Version: v16...
PaulG
PaulGOP2y ago
Thanks! That’s something what I was looking for!
Want results from more Discord servers?
Add your server