Skip to content

Beautiful, AI-native markdown IDE and LLM wiki

fix(ok/docs): remove Warning: Next.js inferred your workspace root, but it may not be correct. (#3821)

Dimitri POSTOLOV4c8fe05394f1
diff --git a/docs/next.config.ts b/docs/next.config.ts
index c3fdad85a..195235561 100644
--- a/docs/next.config.ts
+++ b/docs/next.config.ts
@@ -14,6 +14,10 @@ const nextConfig: NextConfig = {
// Fail the build on any compiler diagnostic
panicThreshold: 'all_errors',
},
+ turbopack: {
+ // Fix Warning: Next.js inferred your workspace root, but it may not be correct.
+ root: fileURLToPath(new URL('..', import.meta.url)),
+ },
// PostHog ingestion is proxied through this origin (api_host: '/ingest' in
// instrumentation-client.ts) so ad-blockers don't drop analytics requests.
// skipTrailingSlashRedirect keeps PostHog's trailing-slash routes reachable