This commit is contained in:
Andras Bacsai
2025-03-25 22:56:12 +01:00
parent ed41f26399
commit a4a7869060
2 changed files with 2 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
FROM oven/bun:1.1.45-alpine AS base FROM oven/bun:1.1.45-alpine AS base
RUN apk add --no-cache git RUN apk add --no-cache git wget
WORKDIR /app WORKDIR /app

View File

@@ -7,7 +7,7 @@ Bun.serve({
if (url.pathname === "/blog") return new Response("Blog!"); if (url.pathname === "/blog") return new Response("Blog!");
if (url.pathname === "/about") return new Response("About!"); if (url.pathname === "/about") return new Response("About!");
if (url.pathname === "/x") return new Response("a"); 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!"); return new Response("404!");
}, },
}) })