NEUROFUSIONInc / fusion

The simplest way to do brain and behaviour research - right in your browser or mobile phone. Discord: https://discord.gg/sqsuzXWE3K
https://usefusion.ai/research
GNU Affero General Public License v3.0
34 stars 6 forks source link

Lucide React is causing auth to fail on prod. #135

Closed oreHGA closed 11 months ago

oreHGA commented 11 months ago

500 internal server is thrown when user tries navigating to https://usefusion.app/auth/login

This error doesn't occur on dev.

[Error: EMFILE: too many open files, open '/var/task/neurofusion/next-client/node_modules/lucide-react/dist/esm/icons/scroll-text.mjs'] {
  errno: -24,
  code: 'EMFILE',
  syscall: 'open',
  path: '/var/task/neurofusion/next-client/node_modules/lucide-react/dist/esm/icons/scroll-text.mjs',
  page: '/auth/login'
}
RequestId: 2cd113cd-4863-4f32-bb9b-ebfbbf2ad1b5 Error: Runtime exited with error: exit status 1
Runtime.ExitError

Did some reading on the lucide docs and it looks like we need to implement dynamic imports.

Screenshot 2023-08-04 at 10 14 48 PM
oreHGA commented 11 months ago

What's weird is that this wasn't an issue before the new website update. Did anything change significantly? @KelechiOdom10 , maybe just an increase in our bundle size?