Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

change diagram to only show light or dark mode

Jonathan Summers-Muir0b0471d23eaa
diff --git a/apps/www/_blog/2023-04-11-edge-runtime-self-hosted-deno.mdx b/apps/www/_blog/2023-04-11-edge-runtime-self-hosted-deno.mdx
index 6faf2caebfe..ec898d8ace9 100644
--- a/apps/www/_blog/2023-04-11-edge-runtime-self-hosted-deno.mdx
+++ b/apps/www/_blog/2023-04-11-edge-runtime-self-hosted-deno.mdx
@@ -100,8 +100,17 @@ You can write a main module to handle all incoming requests. This would look lik
User Workers are separate JS contexts (V8 isolates) that can run a given Edge Function. They have a restricted API (for example, they don’t get access to the host machine’s environment variables). You can also control the memory and duration a User Worker can run.
-![diagram reference](/images/blog/launch-week-7/day-2-edge-runtime/edge-runtime-dark-mode.svg)
-![diagram reference](/images/blog/launch-week-7/day-2-edge-runtime/edge-runtime-light-mode.svg)
+<img
+ className="dark:hidden !m-0"
+ alt="diagram reference"
+ src="/images/blog/launch-week-7/day-2-edge-runtime/edge-runtime-light-mode.svg"
+/>
+
+<img
+ className="hidden dark:block !m-0"
+ alt="diagram reference"
+ src="/images/blog/launch-week-7/day-2-edge-runtime/edge-runtime-dark-mode.svg"
+/>
Here’s a simple implementation of a Main Worker that receives a request, then creates a User Worker and passes the handling of request to the worker.