Nick Randall
Nick Randall
Maybe a duplicate of #237
I can confirm that I am seeing this same issue.
Thanks for responding @yusukebe As I understand it, that code does not keep track of the execution context or environment variables so it doesn't work for my use-case.
@yusukebe to be more specific, the code you suggest does work for very simple use-cases but it doesn't not work if the API route is using ENV variables or execution...
@yusukebe Your suggestion does pass provides the env variables but it still doesn't pass the execution context.
It would be awesome if we had an option to do "unsafe" optimizations like this.
@nicksrandall added info into the description.
Yeah, I have an HTTP service (specifically an AWS lamba fn) that generates css files and we use Lightningcss to post-process the files before we deliver. To work around this,...
So yes, the node file that is actually copied does come from the platform specific package. This fallback logic allows the service to find the copied node file when shipped...
I'll note that I can import `useMatch from `react-router-dom` directly in my app but it's annoying to keep it up to date with exactly what remix depends on. If there...