NuxtN
Nuxt6mo ago
12 replies
Gumaa

Unclear step in Nuxt bridge migration guide

So there is this page: https://nuxt.com/docs/4.x/bridge/configuration#migration-of-each-option
And at the bottom there is this section:
Migration of each option
router.base

export default defineNuxtConfig({
- router: {
-   base: '/my-app/'
- }
+ app: {
+   baseURL: '/my-app/'
+ }
})

build.publicPath

export default defineNuxtConfig({
- build: {
-   publicPath: 'https://my-cdn.net'
- }
+ app: {
+   cdnURL: 'https://my-cdn.net'
+ }
})


What does it mean? Are those examples of migrating specific options? If yes, which option exactly?
Or are they mandatory? Then why aren't they mentioned on a previous page. I'm so confused.

When I should change those. Right after installing nuxt bridge or at any point after enabling certain bridge option?
image.png
Was this page helpful?