Skip to content

Commit

Permalink
fix: home page
Browse files Browse the repository at this point in the history
  • Loading branch information
jetsung committed Jan 3, 2024
1 parent f5b6354 commit 8b120ae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ export default {
const url = new URL(request.url);

if (url.pathname === '/') {
return new Response(`[CDN] eg: ${request.host}/example.com/file/path`);
return new Response(
`[CDN] eg: https://${request.headers.get('host')}/example.com/file/image.png`
);
}

if (url.pathname === '/favicon.ico') {
Expand Down

0 comments on commit 8b120ae

Please sign in to comment.