Includes prior-session patches (carry forward so the app compiles): - crates/gpui/build.rs: cross-compile manifest fix - crates/gpui/src/platform.rs: PlatformWindow::activate_with_token trait method - crates/gpui/src/window.rs: Window::activate_with_token public API - crates/gpui_linux/src/linux/wayland/window.rs: WaylandWindow::activate_with_token + activate() keyboard-serial fix Plus the focus-serial fix: - serial.rs: SerialKind::KeyboardEnter - client.rs: store wl_keyboard.enter serial; latest_serial_of() Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
20 lines
460 B
JavaScript
20 lines
460 B
JavaScript
export default {
|
|
async fetch(request, env) {
|
|
const url = new URL(request.url);
|
|
const key = url.pathname.slice(1);
|
|
|
|
const object = await env.OPEN_SOURCE_WEBSITE_ASSETS_BUCKET.get(key);
|
|
if (!object) {
|
|
return await fetch("https://zed.dev/404");
|
|
}
|
|
|
|
const headers = new Headers();
|
|
object.writeHttpMetadata(headers);
|
|
headers.set("etag", object.httpEtag);
|
|
|
|
return new Response(object.body, {
|
|
headers,
|
|
});
|
|
},
|
|
};
|