summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/root.tsx6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/root.tsx b/app/root.tsx
index a60527e..6c60350 100644
--- a/app/root.tsx
+++ b/app/root.tsx
@@ -10,7 +10,11 @@ import {
import type { Route } from "./+types/root";
import "./app.css";
-import "./lib/worker.server";
+
+export async function loader() {
+ await import("./lib/worker.server");
+ return null;
+}
export const links: Route.LinksFunction = () => [
{ rel: "preconnect", href: "https://fonts.googleapis.com" },