Skip to content

Commit 0abc1ab

Browse files
committed
fix cloudflare
1 parent abe3979 commit 0abc1ab

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

packages/start/src/config/lazy.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ const lazy = (): PluginOption => {
9090
// The transformed files either import "lazy" or css files
9191
// Therefore we skip, if the src doesn't have any import
9292
if (src.indexOf("import") === -1) return;
93+
if (id.includes("entry-server")) return;
9394

9495
const plugins: PluginItem[] = [];
9596

packages/start/src/server/handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import middleware from "solid-start:middleware";
2-
import { defineHandler, getCookie, H3, type H3Event, redirect, setCookie } from "h3";
2+
import { defineHandler, getCookie, H3, type H3Event, redirect, setCookie } from "h3/generic";
33
import { join } from "pathe";
44
import type { JSX } from "solid-js";
55
import { sharedConfig } from "solid-js";

0 commit comments

Comments
 (0)