Skip to main content
Bun supports Nuxt with no extra configuration. Initialize a Nuxt app with the official nuxi CLI.
terminal

To start the dev server, run bun --bun run dev from the project root. This executes the nuxt dev command defined in the "dev" script in package.json.
The nuxt CLI uses Node.js by default; passing the --bun flag forces the dev server to use the Bun runtime instead.
terminal

Once the dev server starts, open http://localhost:3000 to see the app. It renders Nuxt’s built-in NuxtWelcome template component. To start developing your app, replace <NuxtWelcome /> in app.vue with your own UI.
Demo Nuxt app running on
localhost

For production builds, the default preset is compatible with Bun, but the Bun preset generates better optimized builds.
nuxt.config.ts
Alternatively, set the preset with an environment variable:
terminal
Some packages provide Bun-specific exports that Nitro does not bundle correctly with the default preset. Use the Bun preset so those packages work in production builds.
After building, start the server:
terminal

Refer to the Nuxt website for complete documentation.