Skip to content

Commit 7d2c2d1

Browse files
committed
conditionally include PDF Preview for lite
Signed-off-by: MadDogOwner <[email protected]>
1 parent 732a6b8 commit 7d2c2d1

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

src/pages/home/previews/index.ts

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,12 +121,16 @@ const previews: Preview[] = [
121121
component: lazy(() => import("./heic")),
122122
prior: true,
123123
},
124-
{
125-
name: "PDF Preview",
126-
exts: ["pdf"],
127-
component: lazy(() => import("./pdf")),
128-
prior: true,
129-
},
124+
...(import.meta.env.VITE_LITE === "true"
125+
? []
126+
: [
127+
{
128+
name: "PDF Preview",
129+
exts: ["pdf"],
130+
component: lazy(() => import("./pdf")),
131+
prior: true,
132+
},
133+
]),
130134
{
131135
name: "PPT Preview",
132136
exts: ["pptx"],

0 commit comments

Comments
 (0)