1 day ago · 10 min read2040 words · Tech · hide · 0 comments

An archive of what used to be my /notes page. Node.js: Buffer in Cloudflare Workers Using things like Buffer.from() in a Cloudflare Worker will result in an undefined error. To make it work, the nodejs_compat flag has to be enabled in the worker configuration file (in the compatibility_flags array). When that’s done, Buffer can be used: import { Buffer } from 'node:buffer'globalThis.Buffer = Buffer// rest of the code Multiple SSH-keys for the same Git provider Use an SSH config file. In ~/.ssh/config: Host foo-azure HostName vs-ssh.visualstudio.com User git IdentityFile ~/.ssh/ado_foo IdentitiesOnly yes Then, change the default remote URLs from git@ssh.dev.azure.com:v3/customer/project/repo to git@foo-azure:v3/customer/project/repo. Azure DevOps: deployment issues (Node.js) When your pipeline succeeds, but your function/s simply won’t appear, check the following: Deployment package must be the whole project directory, not just the /dist folder Manually syncing triggers might be…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.