mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-16 05:53:42 +08:00
构建优化
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user