Skip to content

Instantly share code, notes, and snippets.

@rauchg
Created December 1, 2022 07:18
Show Gist options
  • Save rauchg/fd21fd5be8feb17e9ece0ba3eeca761f to your computer and use it in GitHub Desktop.
Save rauchg/fd21fd5be8feb17e9ece0ba3eeca761f to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<h1><marquee direction="right">Hello nomsternom</marquee></h1>
import { next } from "@vercel/edge";
export default (req) => {
const url = new URL(req.url);
if (url.pathname === "/api") {
return Response.json({ hello: "world", date: Date.now() });
} else {
return next();
}
};
{
"dependencies": {
"@vercel/edge": "^0.1.2"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment