From a4a78690607d5acd2f43c3872e1ede8a9309200a Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Tue, 25 Mar 2025 22:56:12 +0100 Subject: [PATCH] fix bun --- bun/Dockerfile | 2 +- bun/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bun/Dockerfile b/bun/Dockerfile index 97f0c18..324f177 100644 --- a/bun/Dockerfile +++ b/bun/Dockerfile @@ -1,5 +1,5 @@ FROM oven/bun:1.1.45-alpine AS base -RUN apk add --no-cache git +RUN apk add --no-cache git wget WORKDIR /app diff --git a/bun/index.ts b/bun/index.ts index f8be7d9..7c145d2 100644 --- a/bun/index.ts +++ b/bun/index.ts @@ -7,7 +7,7 @@ Bun.serve({ if (url.pathname === "/blog") return new Response("Blog!"); if (url.pathname === "/about") return new Response("About!"); if (url.pathname === "/x") return new Response("a"); - if (url.pathname === "/201") return new Response("201"); + if (url.pathname === "/201") return new Response("201", { status: 201 }); return new Response("404!"); }, })