The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Docs: fix code block format in Edge Functions debugging guide (#20428)
Monica Khoury1b34d5d8d3d7
diff --git a/apps/docs/pages/guides/functions/debugging.mdx b/apps/docs/pages/guides/functions/debugging.mdxindex 8f3f9665224..afcd52d6e3a 100644--- a/apps/docs/pages/guides/functions/debugging.mdx+++ b/apps/docs/pages/guides/functions/debugging.mdx@@ -39,27 +39,30 @@ When [developing locally](/docs/guides/functions/local-development) you will seeHere is an example of how to use custom logs events in your function:-```+```typescriptDeno.serve(async (req) => {try {- const { name } = await req.json();+ const { name } = await req.json()if (!name) {- console.warn("Empty name provided");+ console.warn('Empty name provided')}const data = {message: `Hello ${name || 'Guest'}!`, // Provide a default value if name is empty- };+ }- console.log(`Name: ${name}`);+ console.log(`Name: ${name}`)- return new Response(JSON.stringify(data), { headers: { 'Content-Type': 'application/json' } });+ return new Response(JSON.stringify(data), { headers: { 'Content-Type': 'application/json' } })} catch (error) {- console.error(`Error processing request: ${error.message}`);- return new Response(JSON.stringify({ error: 'Internal Server Error' }), { status: 500, headers: { 'Content-Type': 'application/json' } });+ console.error(`Error processing request: ${error.message}`)+ return new Response(JSON.stringify({ error: 'Internal Server Error' }), {+ status: 500,+ headers: { 'Content-Type': 'application/json' },+ })}-});+})```## Troubleshooting