standard-www icon indicating copy to clipboard operation
standard-www copied to clipboard

Update demo page to use a Netlify serverless function

Open Flet opened this issue 4 years ago • 1 comments

Hello! Hope folks are doing well!

What problem do you want to solve? Right now the demo is powered by standardizer which is currently served by Glitch.com at https://standardizer.glitch.me/. This worked well for quite a while, but now there is a 10-15 second delay when hitting the service as Glitch fires it up.

What do you think is the correct solution to this problem? Moving standardizer logic into a Netlify serverless function may be an OK solution since the site is using Netlify currently. The cold start is a bit better on Netlify I presume.

Its a very small set of logic that could be recreated here in /api. Netlify would deploy it as part of current deployment process (Netlify Serverless Functions).

Maybe this issue belongs in the standardizer project, I dunno :)

Are you willing to submit a pull request to implement this change? I'm happy to work on this eventually if folks think its worthwhile. If someone else wants to pick it up, go for it! Happy to review!

Flet avatar Jun 17 '20 16:06 Flet

@Flet Go for it!

feross avatar Nov 10 '20 03:11 feross