-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
500 server error when using minified server function in combination with emotion #510
Comments
Is this happening with |
I can not give you much more information as I only have that single project to test with at the moment and it's using When |
Does this work on Vercel? At this point, you should turn minify off - you'll probably benefit more from removing the dev dependencies. |
As khuezy said you should first check if you have any dev dependencies bundled (https://open-next.js.org/common_issues#reducing-bundle-size ) and/or you could use function splitting https://open-next.js.org/config/simple_example#splitting-the-server I'm not sure what we should do with this |
Sorry, I don't know if this works on Vercel and can't test this right now. I'll try to play around with the dev-dependencies. Thank you for the advice. |
Problem
I tried minification in my open-next.config.ts which seems to be "experimental" according to the documentation:
I deployed my app and started testing. At first glance everything seemed to work. Some pages (not all) threw internal server errors.
I inspected the server function lambda logs which included this error for the invocations that seemed to result in the error pages:
Notable dependency versions:
Workaround
I disabled the
minify
option and redeployed the app. The pages that were previously broken work with no issues.The text was updated successfully, but these errors were encountered: