From e1d0d0d1fe2e4f84fb0002d98a1885cb8c5a2729 Mon Sep 17 00:00:00 2001 From: MatthewFeroz Date: Sat, 7 Nov 2026 20:56:07 -0500 Subject: [PATCH] fix(web): resolve the CJK font alias on paths with spaces --- apps/web/vite.config.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/web/vite.config.ts b/apps/web/vite.config.ts index 217294de3762c..d16752ebcfe73 100644 --- a/apps/web/vite.config.ts +++ b/apps/web/vite.config.ts @@ -1,5 +1,6 @@ // @effect-diagnostics-next-line nodeBuiltinImport:off -- Vite config runs before any Effect runtime. import * as NodeFSP from "node:fs/promises"; +import * as NodeURL from "node:url"; import * as NodeZlib from "node:zlib"; import react from "@vitejs/plugin-react"; @@ -324,10 +325,9 @@ export default defineConfig(() => { resolve: { tsconfigPaths: true, alias: { - "@betteroffice/fonts-cjk": new URL( - "./src/components/files/office/fonts-cjk.ts", - import.meta.url, - ).pathname, + "@betteroffice/fonts-cjk": NodeURL.fileURLToPath( + new URL("./src/components/files/office/fonts-cjk.ts", import.meta.url), + ), }, dedupe: ["react", "react-dom"], },