From 31f959835ce699099947efb0c60ac9c99069ed89 Mon Sep 17 00:00:00 2001 From: lencx Date: Mon, 13 Nov 2023 10:45:11 +0800 Subject: [PATCH] chore: path --- vite.config.ts | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index 79de489..5ac7966 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,19 +1,20 @@ import { defineConfig, splitVendorChunkPlugin } from 'vite'; -import { VitePWA } from 'vite-plugin-pwa'; +// import { VitePWA } from 'vite-plugin-pwa'; import react from '@vitejs/plugin-react-swc'; import tsconfigPaths from 'vite-tsconfig-paths'; // https://vitejs.dev/config/ export default defineConfig({ + base: '/gpthub', plugins: [ tsconfigPaths(), react(), splitVendorChunkPlugin(), - VitePWA({ - registerType: 'autoUpdate', - // devOptions: { - // enabled: true, - // }, - }), + // VitePWA({ + // registerType: 'autoUpdate', + // // devOptions: { + // // enabled: true, + // // }, + // }), ], })