@brainfish-ai/carp 0.1.13 → 0.1.14
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 +1 -1
- package/renderer/next.config.ts +13 -0
package/package.json
CHANGED
package/renderer/next.config.ts
CHANGED
|
@@ -1,9 +1,22 @@
|
|
|
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,
|
|
8
|
+
resolveAlias: {
|
|
9
|
+
'@': __dirname,
|
|
10
|
+
},
|
|
11
|
+
},
|
|
12
|
+
// Configure webpack to resolve @ alias (for non-turbopack builds)
|
|
13
|
+
webpack: (config, { isServer }) => {
|
|
14
|
+
config.resolve = config.resolve || {};
|
|
15
|
+
config.resolve.alias = {
|
|
16
|
+
...config.resolve.alias,
|
|
17
|
+
'@': path.resolve(__dirname),
|
|
18
|
+
};
|
|
19
|
+
return config;
|
|
7
20
|
},
|
|
8
21
|
// Disable compression to allow SSE streaming to work properly
|
|
9
22
|
// Without this, Next.js buffers responses and sends them all at once
|