mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-01 23:56:39 +08:00
构建优化
This commit is contained in:
parent
e1306cd248
commit
e7925a1ce1
@ -38,7 +38,7 @@ COPY --from=builder /app/.next/standalone ./
|
||||
COPY --from=builder /app/.next/static ./.next/static
|
||||
COPY --from=builder /app/.next/server ./.next/server
|
||||
|
||||
COPY --from=builder /app/node_modules/tiktoken ./node_modules/tiktoken
|
||||
# COPY --from=builder /app/node_modules/tiktoken ./node_modules/tiktoken
|
||||
# COPY --from=builder /app/node_modules/sharp ./node_modules/sharp
|
||||
|
||||
RUN rm -f .env
|
||||
|
@ -86,6 +86,7 @@ const nextConfig = {
|
||||
},
|
||||
experimental: {
|
||||
forceSwcTransforms: true,
|
||||
serverComponentsExternalPackages: ["tiktoken"]
|
||||
},
|
||||
// externals: {
|
||||
// 'sharp': 'commonjs sharp'
|
||||
|
Loading…
Reference in New Issue
Block a user