Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵月辉
/
fastgpt-migrated
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
4eb2c9bd
authored
May 23, 2024
by
RandyZhang
Committed by
GitHub
May 23, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新Nextjs配置,更新服务端组件的声明 (#1570)
Co-authored-by: randy <randy@aihelp.net>
parent
b1aafde7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
projects/app/next.config.js
+2
-2
No files found.
projects/app/next.config.js
View file @
4eb2c9bd
...
@@ -88,8 +88,8 @@ const nextConfig = {
...
@@ -88,8 +88,8 @@ const nextConfig = {
},
},
transpilePackages
:
[
'@fastgpt/*'
,
'ahooks'
],
transpilePackages
:
[
'@fastgpt/*'
,
'ahooks'
],
experimental
:
{
experimental
:
{
//
指定导出包优化,按需引入包模块
//
优化 Server Components 的构建和运行,避免不必要的客户端打包。
optimizePackageImport
s
:
[
'mongoose'
,
'pg'
],
serverComponentsExternalPackage
s
:
[
'mongoose'
,
'pg'
],
outputFileTracingRoot
:
path
.
join
(
__dirname
,
'../../'
)
outputFileTracingRoot
:
path
.
join
(
__dirname
,
'../../'
)
}
}
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment