120 days ago · 10 min read2040 words · Tech · hide · Fediverse post

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…

Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town