mirror of
https://github.com/simstudioai/sim.git
synced 2026-04-06 03:00:16 -04:00
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:
@@ -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!'}
|
||||
|
||||
@@ -55,6 +55,7 @@ const nextConfig: NextConfig = {
|
||||
turbopack: {
|
||||
resolveExtensions: ['.tsx', '.ts', '.jsx', '.js', '.mjs', '.json'],
|
||||
},
|
||||
serverExternalPackages: ['pdf-parse'],
|
||||
experimental: {
|
||||
optimizeCss: true,
|
||||
turbopackSourceMaps: false,
|
||||
|
||||
Reference in New Issue
Block a user