Skip to content

Commit 69226a5

Browse files
authored
fix(retail-store): configure Turbo build outputs for Next.js (#343)
## Problem The root `turbo.json` declares `dist/**` as the expected build output for all `build` tasks. However, `retail-store` is a Next.js app whose `next build` outputs to `.next/`, not `dist/`. This causes Turborepo to emit a warning on every build: ``` WARNING no output files found for task retail-store#build. Please check your \`outputs\` key in \`turbo.json\` ``` ## Fix Add a package-level `turbo.json` in `examples/retail-store/` that extends the root config and overrides the `build` task outputs to `.next/**` (excluding `.next/cache/**`, which Next.js manages internally). This is the [standard Turborepo pattern for Next.js apps](https://turbo.build/repo/docs/guides/frameworks/nextjs). <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Added a Turbo build pipeline configuration for the retail-store example to standardize build inputs and outputs. * Ensures build artifacts target the production output directory while excluding build cache content to reduce artifact noise. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 9a32955 commit 69226a5

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

examples/retail-store/turbo.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"$schema": "https://turbo.build/schema.json",
3+
"extends": ["//"],
4+
"tasks": {
5+
"build": {
6+
"inputs": [
7+
"src/**",
8+
"app/**",
9+
"public/**",
10+
"middleware.ts",
11+
"next.config.js",
12+
"postcss.config.mjs",
13+
"package.json",
14+
"tsconfig.json"
15+
],
16+
"outputs": [".next/**", "!.next/cache/**"]
17+
}
18+
}
19+
}

0 commit comments

Comments
 (0)