Open ian-pascoe opened 1 week ago
You are right. server.install
has no effect on SolidStart sites. SolidStart
uses Nitro behind the scene. Nitro packages the lambda code into .output/server
. And SolidStart
uses it as is.
What packages are you trying to bundle into the server lambda code?
I am trying to have sentry packages installed for instrumentation. The sentry docs want your sentry init file to be called via NODE_OPTIONS=‘—import instrumentation.mjs’
which makes it get shaken during build
Can u check if it can be configured in app.config.ts
to include specific npm packages in the server build output?
/cc @thdxr do u know if it's possible?
I have tried several config options but it keeps getting shaken. I am about to go the lambda layer route if I can’t figure it out
Just talked to @thdxr, he's working on some stuff in this area. He will fix this.
For context, SolidStart's server output looks like this:
We could inject server.install
in package.json
, and run npm install
.
When I try to deploy my solidstart site and add installs to the server function, they are not added.
To reproduce:
server.install
option