@@ -156,10 +156,16 @@ export default defineNuxtConfig({
|
156 | 156 | '/admin': { appLayout: 'admin' }, |
157 | 157 | // Set layout for multiple routes |
158 | 158 | '/dashboard/**': { appLayout: 'dashboard' }, |
| 159 | +// Disable layout for a route |
| 160 | +'/landing': { appLayout: false }, |
159 | 161 | }, |
160 | 162 | }) |
161 | 163 | ``` |
162 | 164 | |
| 165 | +::tip |
| 166 | +This is useful when you want to manage layouts centrally in your configuration rather than in each page file, or when you need to apply layouts to routes that don't have corresponding page components (such as catchall pages which might match many paths). |
| 167 | +:: |
| 168 | + |
163 | 169 | :link-example{to="/docs/4.x/examples/features/layouts"} |
164 | 170 | |
165 | 171 | ## Overriding a Layout on a Per-page Basis |
|