I wonder is it common for people to add db constraints? It seems extra efforts though it has its benefits. Do sites like shopify, github, basecamp do db constraints too? or do people start building MVP fast and add db constraints later?
Doesn't seem to work with importmap, stuck at 8:15.
So I assume in rails 8.1, I can't have both importmap and also esbuild way together? I have to choose either one. i prefer to stick to the rails way, which I guess is importmap.
It seems I need to do this in the rails project (default importmap), then it works
npm install puppeteer
Only problem is generating PDF on my local Mac is really slow. At first I suspect it is due to the image size, but even a post with just some text (1 liner), take 2 - 3 seconds to create the PDF.
Do you have alternatives which works well with latest rails and able to generate PDF (or even add passwords, etc)? Thanks.