Unlisted
Like
valTownBadge02
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in miliseconds.
main.tsx
https://jxnblk--6abf25e8251511f094ab569c3dd06744.web.val.run
DEPRECATED Use https://www.val.town/x/jxnblk/val-town-badge instead
Render a Val Town badge
import valTownBadge from "https://esm.town/v/jxnblk/valTownBadge02";
export default async function(req: Request): Promise<Response> {
const badge = valTownBadge(import.meta.url);
const html = `
<h1>Hello, world</h1>
${badge}
`;
return new Response(html, {
headers: {
"Content-Type": "text/html; charset=utf-8",
},
});
}
Migrated from folder: _LEAVE_AS_IS/badge_LEAVE_AS_IS/valTownBadge02