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
This commit is contained in:
Michael Gearhardt
2024-03-12 12:14:23 +01:00
committed by GitHub
parent 5ec06350e2
commit 671751d572
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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 },
+1 -1
View File
@@ -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);