From 671751d572edf7c7b58dcfd59ce840c54bfaddd4 Mon Sep 17 00:00:00 2001 From: Michael Gearhardt Date: Tue, 12 Mar 2024 05:14:23 -0600 Subject: [PATCH] fix: $fresh ref in import sources (#2340) There was an issue with the tailwind error page being pulled in by ref to $fresh, fixed so now it just uses the file --- src/server/context.ts | 2 +- src/server/rendering/template.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/context.ts b/src/server/context.ts index 8e38103b..72d1b2b4 100644 --- a/src/server/context.ts +++ b/src/server/context.ts @@ -44,7 +44,7 @@ import { loadAotSnapshot } from "../build/aot_snapshot.ts"; import { ErrorOverlay } from "./error_overlay.tsx"; import { withBase } from "./router.ts"; import { PARTIAL_SEARCH_PARAM } from "../constants.ts"; -import TailwindErrorPage from "$fresh/src/server/tailwind_aot_error_page.tsx"; +import TailwindErrorPage from "./tailwind_aot_error_page.tsx"; const DEFAULT_CONN_INFO: ServeHandlerInfo = { localAddr: { transport: "tcp", hostname: "localhost", port: 8080 }, diff --git a/src/server/rendering/template.tsx b/src/server/rendering/template.tsx index b8ce647f..1755fc8c 100644 --- a/src/server/rendering/template.tsx +++ b/src/server/rendering/template.tsx @@ -11,7 +11,7 @@ import { } from "preact"; import { HEAD_CONTEXT } from "../../runtime/head.ts"; import { CSP_CONTEXT } from "../../runtime/csp.ts"; -import { withBase } from "$fresh/src/server/router.ts"; +import { withBase } from "../router.ts"; export function renderHtml(state: RenderState) { setRenderState(state);