Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
SunWuyuan committed Jul 26, 2024
1 parent eae4946 commit 9df1d3c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
7 changes: 5 additions & 2 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"rewrites": [
{ "source": "/(.*)", "destination": "/" }
]
{ "source": "/(.*)", "destination": "/" },
{
"source": "/scratch/:path*",
"destination": "/scratch/:path*"
} ]
}
6 changes: 3 additions & 3 deletions vite.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -47,7 +47,7 @@ export default defineConfig({
vueTemplate: true,
}),
PrimeVueResolver(),
copyPlugin(
/*copyPlugin(
{
targets: [{ src: "scratch-gui/build", dest: "dist" }],
verbose: true,
Expand All @@ -58,7 +58,7 @@ export default defineConfig({
verbose: true,
hook: "buildEnd",
}
),
),*/
],
define: { "process.env": {} },
resolve: {
Expand Down

0 comments on commit 9df1d3c

Please sign in to comment.