(The project is a simple url shortener using the n...
# general
c
(The project is a simple url shortener using the new esbuild configurable builder to pack the whole html/css together with the lambda). I will put it in github later šŸ˜‰
j
That’s really awesome to hear! I’m glad you’ve had a good experience. I’d love to see the project in action!
c
I am also doing my part. The url shortner is a personal project; in the company we are using CDK and we are of course not happy with the speed of local development (all our microservices are lambda based). Even though with esbuild the deployment is now around 1 minute, it’s still 1 minute to wait to test something šŸ™„
I am not finding blocking issues for us to bring
sst
in the company (I can decide that). The only ā€œproblemā€ of course is the rate of updates with the CDK version (and TS)
we got a huge problem some weeks ago with CDK (a database disappeared during the deployment) and the cdk folks told us to upgrade to the latest version
j
Oh wow. That's quite scary. Once we merge this PR (https://github.com/serverless-stack/serverless-stack/pull/82) CDK updates should become very quick. Now that I think about it, maybe we can just create a bot that'll open a PR when there's a new CDK or TS update.
c
@Jay https://github.com/claudioc/urlino I am not sure if I followed all the ā€œbest practicesā€ (if any) in there though. Maybe the most interesting part is in https://github.com/claudioc/urlino/blob/main/src/index.ts
j
Awesome I’ll check it out today. Thanks for sharing!
It's pretty cool! It's nicely put together. I liked the
.env
idea you used as well! Thank you for sharing.
c
@Jay yeah, I think
dotenv
could probably be part of sst directly because one way or another you need to pass some configuration parameters; I would even go as far as considering removing
sst.json
and just use a
.env
j
That’s a good point. We should also figure out how to easily add that to the Lambda functions.