Fix WESP UI after git clone: serve from public/wesp and materialize static.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -4,6 +4,10 @@
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"materialize:wesp": "bash ../../scripts/materialize-wesp-static.sh",
|
||||
"predev": "pnpm run materialize:wesp",
|
||||
"prebuild": "pnpm run materialize:wesp",
|
||||
"prepreview": "pnpm run materialize:wesp",
|
||||
"dev": "vite",
|
||||
"build": "vite build",
|
||||
"preview": "vite preview",
|
||||
|
||||
@@ -9,7 +9,8 @@ const apiProxyTarget = process.env.VITE_API_URL ?? "http://127.0.0.1:8000";
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
wespStaticPlugin(resolve(__dirname, "public/static")),
|
||||
// public/wesp is in git; public/static is generated (see scripts/materialize-wesp-static.sh).
|
||||
wespStaticPlugin(resolve(__dirname, "public/wesp")),
|
||||
react(),
|
||||
mainStaticPlugin(resolve(__dirname, "main"))
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user