RELATIONAL TAGEDGE · COMPATIBILITY MATRIX
PEER DEPENDENCY CONSTRAINTCOMPATIBLE WITH
tauri-apps/tauri(tauri-v2.12.7)
withvercel/next.js(v16.5.0-canary.48)
Constraint: >= 2.0.0 (Tauri v2 requires output: 'export' in Next.js)Tauri v2 & Next.js 15 Compatibility and Desktop Export Guide
Tauri v2 seamlessly wraps Next.js 15 applications as native desktop binaries, provided Next.js is configured for static HTML export (output: 'export') with unoptimized images.
Engine: TagEdge HeuristicsUpdated: 2026-11-30Canonical: https://reposen.se/compatibility/tauri-with-next
Compatibility notes and CLI commands are generated automatically by AI without human editorial review on an "as-is" basis. Verify against official upstream documentation before upgrading, see Legal Disclaimer or Report an Error.
Quick Resolution & CLI Installation
npm install @tauri-apps/api@latest @tauri-apps/plugin-shell@latestArchitectural & Migration Analysis
- Tauri executes web applications within an OS webview (WebKitGTK on Linux, WebKit on macOS, WebView2 on Windows) without a Node.js server runtime.
- Next.js must configure output: 'export' and images: { unoptimized: true } in next.config.mjs to serve static assets directly to the Tauri application shell.
- Dynamic server actions, streaming SSR, and Node-exclusive runtime APIs are unsupported in Tauri desktop builds; frontend state must communicate via Tauri IPC commands (@tauri-apps/api/core).
Frequently Asked Questions & Migration Q&A
Can I use Next.js 15 Server-Side Rendering (SSR) with Tauri v2?
No. Tauri packages applications into desktop webviews without a persistent Node.js server. You must set output: 'export' in next.config.mjs for static HTML generation.
How do I invoke backend Rust functions from Next.js in Tauri v2?
Import invoke from @tauri-apps/api/core and call your annotated #[tauri::command] Rust handlers directly from React Client Components.
What is the recommended devUrl and beforeDevCommand for Next.js with Tauri?
Set beforeDevCommand to 'npm run dev', devUrl to 'http://localhost:3000', beforeBuildCommand to 'npm run build', and frontendDist to '../out' in tauri.conf.json.