Andrés
Andrés5d ago

Can we bundle WS TRPC Server?

I'm trying to bundle just the file using esbuild, I just want to make a docker image that weights less through build and using an alpine image. The problem is that the output image of just installing and using ts-node fileserver is quite big.
Solution:
Nevermind, this is an stupid question, of course you can
Jump to solution
2 Replies
Andrés
AndrésOP5d ago
Trying with
esbuild ./src/server/wsServer.ts --bundle --outfile=bundle.cjs --platform=node --minify --external:mock-aws-s3 --external:nock
esbuild ./src/server/wsServer.ts --bundle --outfile=bundle.cjs --platform=node --minify --external:mock-aws-s3 --external:nock
but looks like something is not working.
Solution
Andrés
Andrés2d ago
Nevermind, this is an stupid question, of course you can

Did you find this page helpful?