@brainfish-ai/carp 0.1.9 → 0.1.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brainfish-ai/carp",
3
- "version": "0.1.9",
3
+ "version": "0.1.11",
4
4
  "description": "Documentation framework for developers. Write docs in MDX, preview locally, deploy to Brainfish.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,10 +1,21 @@
1
1
  import type { NextConfig } from "next";
2
+ import path from "path";
2
3
 
3
4
  const nextConfig: NextConfig = {
4
5
  /* config options here */
5
6
  turbopack: {
6
7
  root: __dirname,
7
8
  },
9
+
10
+ // Explicitly configure webpack to resolve @ alias
11
+ // This ensures path aliases work when running from npx
12
+ webpack: (config) => {
13
+ config.resolve.alias = {
14
+ ...config.resolve.alias,
15
+ '@': path.resolve(__dirname),
16
+ };
17
+ return config;
18
+ },
8
19
  // Disable compression to allow SSE streaming to work properly
9
20
  // Without this, Next.js buffers responses and sends them all at once
10
21
  compress: false,
@@ -18,6 +18,7 @@
18
18
  "name": "next"
19
19
  }
20
20
  ],
21
+ "baseUrl": ".",
21
22
  "paths": {
22
23
  "@/*": ["./*"]
23
24
  }