Skip to content

Commit c591433

Browse files
authored
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 b23258a.
1 parent f018659 commit c591433

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-block/components/sub-block/components/file-upload.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ export function FileUpload({
536536
<Progress
537537
value={uploadProgress}
538538
className='h-2 w-full'
539-
indicatorClassName='bg-white dark:bg-white'
539+
indicatorClassName='bg-foreground'
540540
/>
541541
<div className='mt-1 text-center text-muted-foreground text-xs'>
542542
{uploadProgress < 100 ? 'Uploading...' : 'Upload complete!'}

apps/sim/next.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ const nextConfig: NextConfig = {
5555
turbopack: {
5656
resolveExtensions: ['.tsx', '.ts', '.jsx', '.js', '.mjs', '.json'],
5757
},
58+
serverExternalPackages: ['pdf-parse'],
5859
experimental: {
5960
optimizeCss: true,
6061
turbopackSourceMaps: false,

0 commit comments

Comments
 (0)