You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I switched from another adapter to use node adapter and had esbuild options with define. That basically overwrites esbuild_app_dir defined by the adapter breaking assetsMiddleware. A symptom is rather odd as all assets are responding to status code 500 with no clue why.
Maybe the adapter should warn the user if they overwrite the esbuild_app_dir property from define or the documentation could mention it. Now you can figure it out but it's not that obvious.
Describe the bug
I switched from another adapter to use node adapter and had esbuild options with
define
. That basically overwritesesbuild_app_dir
defined by the adapter breaking assetsMiddleware. A symptom is rather odd as all assets are responding to status code 500 with no clue why.Maybe the adapter should warn the user if they overwrite the
esbuild_app_dir
property fromdefine
or the documentation could mention it. Now you can figure it out but it's not that obvious.Reproduction
In svelte.config.js configure node adapter like:
Build, run
node build
and check broken http://localhost:3000 site.Fix is to do configuration e.g.:
Logs
No response
System Info
Severity
annoyance
Additional Information
No response
The text was updated successfully, but these errors were encountered: