Skip to content

Commit 1781fde

Browse files
committed
feat: poc ssr netlify rendering
1 parent fc7b36a commit 1781fde

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

netlify/functions/hello.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
export default async () => {
2+
return new Response(
3+
`<!doctype html>
4+
<html lang="en">
5+
<head><meta charset="utf-8"><title>Hello</title></head>
6+
<body><h1>Hello, World!</h1></body>
7+
</html>`,
8+
{ headers: { 'content-type': 'text/html; charset=utf-8' } },
9+
);
10+
};
11+
12+
export const config = {
13+
path: '/developers/api/hello',
14+
};

0 commit comments

Comments
 (0)