Skip to content
Discussion options

You must be logged in to vote

Hi @girishcx07 👋

Short answer: You can deploy a single Next.js app from a Turborepo without the whole monorepo, but you must (1) build with output: 'standalone' and a correct outputFileTracingRoot (the workspace root), and (2) run the generated server from .next/standalone without reinstalling packages or using a custom server.js that calls require('next').
If you need a fully pruned set of sources/deps, use turbo prune.

✅ Correct build settings (monorepo)
// apps/evm/next.config.mjs
import path from "node:path";
import { fileURLToPath } from "node:url";
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);

export default /** @type {import('next').…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by girishcx07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants