Feature Flags
You can optionally disable some features from Bridge or opt-in to less stable ones. In normal circumstances, it is always best to stick with defaults! You can check bridge/src/module.ts for latest defaults.nuxt.config.ts
Configuration Options
vite
Enable Vite as your bundler instead of webpack 4:- Faster dev server startup
- Faster hot module replacement (HMR)
- Better development experience
meta
Enable Nuxt 3 compatibleuseHead composable:
useHead composable for managing meta tags.
nitro
Enable the Nitro server engine:- Improved server performance
- Better deployment options
- API route improvements
- Nuxt 3 compatibility
typescript
Enable TypeScript support with optional esbuild transpilation:capi
Configure Composition API support:macros
Enable compiler macros likedefinePageMeta:
imports
Configure auto-imports:scriptSetup
Enable<script setup> support:
transpile
Configure module transpilation:constraints
Control module compatibility warnings:Migration of Specific Options
router.base → app.baseURL
Therouter.base option has been moved to app.baseURL:
nuxt.config.ts
build.publicPath → app.cdnURL
Thebuild.publicPath option has been moved to app.cdnURL:
nuxt.config.ts
Recommended Configuration
For a smooth migration, we recommend enabling features gradually:Step 1: Basic Setup
Step 2: Add Nitro
Step 3: Enable Vite
Step 4: Add Modern Features
Troubleshooting
Module Compatibility Issues
If you encounter module compatibility warnings:Build Errors
If you encounter build errors after enabling a feature:- Disable the feature temporarily
- Clear
.nuxtdirectory:rm -rf .nuxt - Reinstall dependencies:
npm install - Try enabling the feature again
TypeScript Errors
If you see TypeScript errors:- Run
nuxi prepareto regenerate types - Restart your IDE/editor
- Check
tsconfig.jsonextends.nuxt/tsconfig.json
Configuration Examples
Minimal Configuration
For a minimal Bridge setup:Full Featured Configuration
For a complete Bridge setup with all features:Next Steps
After configuring Bridge:- Test your application thoroughly
- Gradually enable more features
- Monitor for compatibility issues
- Prepare for full Nuxt 3 migration