mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-17 06:23:44 +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/static ./.next/static
|
||||||
COPY --from=builder /app/.next/server ./.next/server
|
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
|
# COPY --from=builder /app/node_modules/sharp ./node_modules/sharp
|
||||||
|
|
||||||
RUN rm -f .env
|
RUN rm -f .env
|
||||||
|
|||||||
@@ -86,6 +86,7 @@ const nextConfig = {
|
|||||||
},
|
},
|
||||||
experimental: {
|
experimental: {
|
||||||
forceSwcTransforms: true,
|
forceSwcTransforms: true,
|
||||||
|
serverComponentsExternalPackages: ["tiktoken"]
|
||||||
},
|
},
|
||||||
// externals: {
|
// externals: {
|
||||||
// 'sharp': 'commonjs sharp'
|
// 'sharp': 'commonjs sharp'
|
||||||
|
|||||||
Reference in New Issue
Block a user