From f5b63543fb99398775041c2b7e48489ab15d7228 Mon Sep 17 00:00:00 2001 From: Jetsung Chan <jetsungchan@gmail.com> Date: Thu, 4 Jan 2024 02:38:42 +0800 Subject: [PATCH] fix: home page --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index aab73a4..40e6759 100644 --- a/src/index.ts +++ b/src/index.ts @@ -3,7 +3,7 @@ export default { const url = new URL(request.url); if (url.pathname === '/') { - return new Response(`[CDN] eg: ${request.method}/example.com/file/path`); + return new Response(`[CDN] eg: ${request.host}/example.com/file/path`); } if (url.pathname === '/favicon.ico') {