Do we need to redeploy workers after changing to standard billing in order for it to switch?
Do we need to redeploy workers after changing to standard billing in order for it to switch?





workers-rs, you get the benefits of Rust's borrow-checker(and all the other goodies), but if you are using something like AssemblyScript, then I wouldn't see much benefit there(performance-wise, anyway).Response body of any request to the image you make into memoryResponse.clone is fine -
WebSocket disconnected without sending Close frame.Network connection lost.exception outcome is for any unhandled exception, which Network connection lost would be. The errors around WebSockets aren't ideal, and https://github.com/cloudflare/workerd/pull/804 hopes to improve them.Network connection lost here - I assume that's what error messages generated by that PR should tell us?Link element, tag: fn&Ī*k�<�ʣ Attribute translator - tag: z�
Link element, tag: l$¶x��t��Śfo�k[����ң☺�e��
Attribute translator - tag: l$¶x��t��Śfo�k[����ң☺�e��
Link element, tag: p��0�#|�♠���$�ӌ�◄§�-f}tda�"~w��+�?ͩ�f+k���m�y@�p��7��▲��
Attribute translator - tag: p��0�#|�♠���$�ӌ�◄§�-f}tda�"~w��+�?ͩ�f+k���m�y@�p��7��▲�� let rewriter = new HTMLRewriter().onDocument(new DocumentHandler(context))
.on("*", new LinkHandler(context))
.on("*", new AttributeTranslationHandler(context));
// Add element text translation handler for all elements that are allowed to be translated
for (let element of config.translation["translate-behaviour"]["allowed-tags"]) {
rewriter = rewriter.on(`[${element}]`, new AttributeTranslationHandler(context));
}
return rewriter.transform(fetchResult);class LinkHandler implements HTMLRewriterElementContentHandlers {
// Current URL
context: EventContext<any, any, any>;
currentURL: string;
constructor(context: EventContext<any, any, any>) {
this.context = context;
this.currentURL = context.request.url;
}
// Go through all attributes in the config (src, href, etc) and rewrite them to the correct URI
element(element: Element) {
// Show the element type and id
console.log(`Link element, tag: ${element.tagName}`);
// // Check if the element has any rewriteable attributes
for (let attribute of config["reverse-proxy"]["proxied-attributes"]) {
// Check if the element has the attribute
if (!element.getAttribute(attribute)) {
// Rewrite the attribute
continue;
}
// Check the current locale, and prepend it to the URL in the attribute
let currentLocale = getCurrentLocale(new URL(this.currentURL));
// If no current locale, then continue
if (!currentLocale) {
continue;
}
// Replace the "target-url" with "target-url"/currentLocale/
let new_attribute = element.getAttribute(attribute).replace(config["reverse-proxy"]["target-url"], `${config["reverse-proxy"]["target-url"]}/${currentLocale}`);
// If it's different, then log it and change it
if (new_attribute == element.getAttribute(attribute)) {
continue;
}
console.log("Changed attribute from " + element.getAttribute(attribute) + " to " + new_attribute + " for attribute " + attribute + " on element " + element.tagName);
element.setAttribute(attribute, new_attribute);
}
// Kma
}
}