mirror of
https://github.com/Rohithgilla12/data-peek
synced 2026-04-21 12:57:16 +00:00
The blog page reads notes/*.mdx at build time, but notes/ lives outside apps/web so Turbo's default in-package hashing missed it. Adding new posts to notes/ resulted in FULL TURBO cache hits that replayed the stale build, leaving new posts invisible on the live blog. Declare notes/** as an extra input for @data-peek/web#build so any change under notes/ busts the cache and triggers a real rebuild.
76 lines
1.5 KiB
JSON
76 lines
1.5 KiB
JSON
{
|
|
"$schema": "https://turbo.build/schema.json",
|
|
"globalEnv": [
|
|
"DATABASE_URL",
|
|
"NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY",
|
|
"CLERK_SECRET_KEY",
|
|
"NEXT_PUBLIC_CLERK_SIGN_IN_URL",
|
|
"NEXT_PUBLIC_CLERK_SIGN_UP_URL",
|
|
"DODO_API_KEY",
|
|
"DODO_WEBHOOK_SECRET",
|
|
"DODO_PRO_PRODUCT_ID",
|
|
"RESEND_API_KEY",
|
|
"NEXT_PUBLIC_APP_URL",
|
|
"NODE_ENV"
|
|
],
|
|
"tasks": {
|
|
"build": {
|
|
"dependsOn": ["^build"],
|
|
"outputs": [
|
|
"dist/**",
|
|
"out/**",
|
|
".next/**",
|
|
"!.next/cache/**",
|
|
".output/**"
|
|
]
|
|
},
|
|
"@data-peek/web#build": {
|
|
"dependsOn": ["^build"],
|
|
"inputs": ["$TURBO_DEFAULT$", "../../notes/**"],
|
|
"outputs": [".next/**", "!.next/cache/**"]
|
|
},
|
|
"build:mac": {
|
|
"dependsOn": ["^build"],
|
|
"outputs": ["dist/**", "out/**"],
|
|
"cache": false
|
|
},
|
|
"build:win": {
|
|
"dependsOn": ["^build"],
|
|
"outputs": ["dist/**", "out/**"],
|
|
"cache": false
|
|
},
|
|
"build:linux": {
|
|
"dependsOn": ["^build"],
|
|
"outputs": ["dist/**", "out/**"],
|
|
"cache": false
|
|
},
|
|
"typecheck": {
|
|
"dependsOn": ["^typecheck"],
|
|
"outputs": []
|
|
},
|
|
"typecheck:node": {
|
|
"outputs": []
|
|
},
|
|
"typecheck:web": {
|
|
"outputs": []
|
|
},
|
|
"types:check": {
|
|
"outputs": []
|
|
},
|
|
"lint": {
|
|
"outputs": []
|
|
},
|
|
"dev": {
|
|
"cache": false,
|
|
"persistent": true
|
|
},
|
|
"format": {
|
|
"outputs": [],
|
|
"cache": false
|
|
},
|
|
"render": {
|
|
"outputs": ["out/**"],
|
|
"cache": false
|
|
}
|
|
}
|
|
}
|