From 1781fde7192b3e70fb762575835cd671e00043b7 Mon Sep 17 00:00:00 2001 From: Stephan Butler Date: Thu, 30 Apr 2026 12:59:07 +0200 Subject: [PATCH 1/2] feat: poc ssr netlify rendering --- netlify/functions/hello.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 netlify/functions/hello.js diff --git a/netlify/functions/hello.js b/netlify/functions/hello.js new file mode 100644 index 0000000..9d39298 --- /dev/null +++ b/netlify/functions/hello.js @@ -0,0 +1,14 @@ +export default async () => { + return new Response( + ` + + Hello +

Hello, World!

+`, + { headers: { 'content-type': 'text/html; charset=utf-8' } }, + ); +}; + +export const config = { + path: '/developers/api/hello', +}; From ff89c03dfe0aafa9ee4a0230aef1fb9dba00b57e Mon Sep 17 00:00:00 2001 From: Stephan Butler Date: Thu, 30 Apr 2026 13:38:40 +0200 Subject: [PATCH 2/2] style: linting fix --- netlify/functions/hello.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/netlify/functions/hello.js b/netlify/functions/hello.js index 9d39298..05f5e74 100644 --- a/netlify/functions/hello.js +++ b/netlify/functions/hello.js @@ -5,10 +5,10 @@ export default async () => { Hello

Hello, World!

`, - { headers: { 'content-type': 'text/html; charset=utf-8' } }, - ); -}; + { headers: { 'content-type': 'text/html; charset=utf-8' } } + ) +} export const config = { - path: '/developers/api/hello', -}; + path: '/developers/api/hello' +}