From 9df1d3c42e1eda6e62eab3f341a13516365bc3dd Mon Sep 17 00:00:00 2001 From: SunWuyuan <1847261658@qq.com> Date: Fri, 26 Jul 2024 13:43:47 +0800 Subject: [PATCH] 1 --- vercel.json | 7 +++++-- vite.config.mjs | 6 +++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/vercel.json b/vercel.json index b73cda2..8b75266 100644 --- a/vercel.json +++ b/vercel.json @@ -1,5 +1,8 @@ { "rewrites": [ - { "source": "/(.*)", "destination": "/" } - ] + { "source": "/(.*)", "destination": "/" }, + { + "source": "/scratch/:path*", + "destination": "/scratch/:path*" + } ] } \ No newline at end of file diff --git a/vite.config.mjs b/vite.config.mjs index e15919a..cb8ca4b 100644 --- a/vite.config.mjs +++ b/vite.config.mjs @@ -7,7 +7,7 @@ import Vue from "@vitejs/plugin-vue"; import VueRouter from "unplugin-vue-router/vite"; import Vuetify, { transformAssetUrls } from "vite-plugin-vuetify"; import { PrimeVueResolver } from "@primevue/auto-import-resolver"; -import copyPlugin from "rollup-plugin-copy"; +//import copyPlugin from "rollup-plugin-copy"; // Utilities import { defineConfig, loadEnv } from "vite"; @@ -47,7 +47,7 @@ export default defineConfig({ vueTemplate: true, }), PrimeVueResolver(), - copyPlugin( + /*copyPlugin( { targets: [{ src: "scratch-gui/build", dest: "dist" }], verbose: true, @@ -58,7 +58,7 @@ export default defineConfig({ verbose: true, hook: "buildEnd", } - ), + ),*/ ], define: { "process.env": {} }, resolve: {