From c5914332487207fbe585a17b49986a2a4a864167 Mon Sep 17 00:00:00 2001 From: Waleed Date: Thu, 11 Sep 2025 14:13:51 -0700 Subject: [PATCH] fix(file-upload): fix nextjs file upload issue with pdf-parse (#1321) * update infra and remove railway * fix(file-upload): fix nextjs file upload issue with pdf-parse * Revert "update infra and remove railway" This reverts commit b23258a5a128b47956d6f7f4622e1e736dc2332f. --- .../components/sub-block/components/file-upload.tsx | 2 +- apps/sim/next.config.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-block/components/sub-block/components/file-upload.tsx b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-block/components/sub-block/components/file-upload.tsx index 15a15768b7..f31bf6ac85 100644 --- a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-block/components/sub-block/components/file-upload.tsx +++ b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-block/components/sub-block/components/file-upload.tsx @@ -536,7 +536,7 @@ export function FileUpload({
{uploadProgress < 100 ? 'Uploading...' : 'Upload complete!'} diff --git a/apps/sim/next.config.ts b/apps/sim/next.config.ts index 22b3106ae3..91c38642d0 100644 --- a/apps/sim/next.config.ts +++ b/apps/sim/next.config.ts @@ -55,6 +55,7 @@ const nextConfig: NextConfig = { turbopack: { resolveExtensions: ['.tsx', '.ts', '.jsx', '.js', '.mjs', '.json'], }, + serverExternalPackages: ['pdf-parse'], experimental: { optimizeCss: true, turbopackSourceMaps: false,