From 4be7e38cd4f9e61a2d95892ffcecdb5cd8a810af Mon Sep 17 00:00:00 2001 From: Stephen Zhou <38493346+hyoban@users.noreply.github.com> Date: Thu, 26 Feb 2026 02:00:13 +0800 Subject: [PATCH] update --- web/vite.config.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/vite.config.ts b/web/vite.config.ts index 7a043ac141..c9c104b842 100644 --- a/web/vite.config.ts +++ b/web/vite.config.ts @@ -1,4 +1,6 @@ import type { Plugin } from 'vite' +import path from 'node:path' +import { fileURLToPath } from 'node:url' import mdx from '@mdx-js/rollup' import react from '@vitejs/plugin-react' import vinext from 'vinext' @@ -6,6 +8,7 @@ import { defineConfig, loadEnv } from 'vite' import mkcert from 'vite-plugin-mkcert' import tsconfigPaths from 'vite-tsconfig-paths' +const __dirname = path.dirname(fileURLToPath(import.meta.url)) const isCI = !!process.env.CI export default defineConfig(({ mode }) => {