Clear and concise description of the problem
Currently the hosted instance of Briefkasten (https://briefkastenhq.com), runs on Vercel which has a 10s limit on its API routes. Meaning, for the API endpoint which saves new bookmarks, it was not possible to also take the screenshot there and keep it consistently under 10s.
So for the hosted instance, I put the screenshot taking into a decoupled message queue that would be worked through by some serverless function workers.
This seems like way too much work for a self-hosted instance, hwoever, plus the self-hosters do not have that arbitrary 10s limit.
Suggested solution
Vercel adds an environment variable VERCEL which is 1 when an application is running on their platform. Therefore, we can easily tell whether we need to run the screenshotting process through the queue, or have the resources to just fire up playwright / puppeteer right in the backend process and take the screenshot immediately upon adding the bookmark.
This is a feature request from myself, just adding this issue to keep track, inform the community, and potentially gather any additional feedback yall may have 🙏
I do not have an ETA on this, but plan to add it soon ™️
Alternative
No response
Additional context
No response
Validations
Clear and concise description of the problem
Currently the hosted instance of Briefkasten (https://briefkastenhq.com), runs on Vercel which has a 10s limit on its API routes. Meaning, for the API endpoint which saves new bookmarks, it was not possible to also take the screenshot there and keep it consistently under 10s.
So for the hosted instance, I put the screenshot taking into a decoupled message queue that would be worked through by some serverless function workers.
This seems like way too much work for a self-hosted instance, hwoever, plus the self-hosters do not have that arbitrary 10s limit.
Suggested solution
Vercel adds an environment variable
VERCELwhich is1when an application is running on their platform. Therefore, we can easily tell whether we need to run the screenshotting process through the queue, or have the resources to just fire up playwright / puppeteer right in the backend process and take the screenshot immediately upon adding the bookmark.This is a feature request from myself, just adding this issue to keep track, inform the community, and potentially gather any additional feedback yall may have 🙏
I do not have an ETA on this, but plan to add it soon ™️
Alternative
No response
Additional context
No response
Validations