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 b23258a5a1.
This commit is contained in:
Waleed
2025-09-11 14:13:51 -07:00
committed by GitHub
parent f0186593a1
commit c591433248
2 changed files with 2 additions and 1 deletions

View File

@@ -536,7 +536,7 @@ export function FileUpload({
<Progress
value={uploadProgress}
className='h-2 w-full'
indicatorClassName='bg-white dark:bg-white'
indicatorClassName='bg-foreground'
/>
<div className='mt-1 text-center text-muted-foreground text-xs'>
{uploadProgress < 100 ? 'Uploading...' : 'Upload complete!'}

View File

@@ -55,6 +55,7 @@ const nextConfig: NextConfig = {
turbopack: {
resolveExtensions: ['.tsx', '.ts', '.jsx', '.js', '.mjs', '.json'],
},
serverExternalPackages: ['pdf-parse'],
experimental: {
optimizeCss: true,
turbopackSourceMaps: false,