fix(errors): use relative import so main-process bundle resolves

Rollup in vite.main.config.ts doesn't know about the `@/` alias (only the
renderer configs do). After PR 4 made `lib/errors.ts` reachable from main,
its `@/config/env` import broke the main build with:

  [vite]: Rollup failed to resolve import "@/config/env" from "lib/errors.ts"

Swap to a relative import — the module is now genuinely isomorphic.
This commit is contained in:
Claude
2026-04-21 01:54:38 +00:00
parent 156ef5a204
commit 58fdf0cf5d
+1 -1
View File
@@ -1,5 +1,5 @@
import { z } from "zod";
import { appEnv } from "@/config/env";
import { appEnv } from "../config/env";
export class ApiError extends Error {
constructor(