From 16dbff3238cfb9ca809a3a3f10353c7992f40f2d Mon Sep 17 00:00:00 2001 From: Hk-Gosuto Date: Wed, 28 Aug 2024 10:48:40 +0800 Subject: [PATCH] fix: vercel 504 --- next.config.mjs | 4 ---- package.json | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/next.config.mjs b/next.config.mjs index bd73bed15..74c6782d2 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -8,10 +8,6 @@ console.log("[Next] build with chunk: ", !disableChunk); /** @type {import('next').NextConfig} */ const nextConfig = { - env: { - LANGCHAIN_CALLBACKS_BACKGROUND: true, - }, - webpack(config) { config.module.rules.push({ test: /\.svg$/, diff --git a/package.json b/package.json index 3446a0b49..d961c5c5c 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "mask:watch": "npx watch 'yarn mask' app/masks", "dev": "yarn run mask:watch & next dev", "dev:https": "yarn run mask:watch & next dev --experimental-https", - "build": "yarn mask && cross-env BUILD_MODE=standalone next build", + "build": "yarn mask && cross-env BUILD_MODE=standalone LANGCHAIN_CALLBACKS_BACKGROUND=true next build", "start": "next start", "lint": "next lint", "export": "yarn mask && cross-env BUILD_MODE=export BUILD_APP=1 next build",