diff --git a/.github/server/server.js b/.github/server/server.js index 0dc6935..fc115ac 100644 --- a/.github/server/server.js +++ b/.github/server/server.js @@ -48,6 +48,8 @@ createSiteStatic() app.use(express.static(resolve(__dirname, './site-static'))) +app.use('/sheet', express.static(resolve(__dirname, './site-static'))) + proxy.on('error', (error, req, res) => { console.error('proxy error:', error) if (!res.headersSent) { diff --git a/index.html b/index.html index 4469ce4..d498e30 100644 --- a/index.html +++ b/index.html @@ -12,6 +12,6 @@
- + diff --git a/vite.config.ts b/vite.config.ts index 2cd7280..9ef37a5 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -14,6 +14,7 @@ export default defineConfig({ define: { 'process.env.UNIVER_CLIENT_LICENSE': '"%%UNIVER_CLIENT_LICENSE_PLACEHOLDER%%"', }, + base: './', build: { rollupOptions: { output: {