mirror of
https://github.com/dec0dOS/zero-ui.git
synced 2025-07-06 13:01:46 -07:00
chore: fix vite assets resolution
This commit is contained in:
parent
4dd6c3d91d
commit
abcf031f81
1 changed files with 5 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
|||
import { defineConfig } from "vite";
|
||||
import process from "node:process";
|
||||
import { defineConfig, searchForWorkspaceRoot } from "vite";
|
||||
import react from "@vitejs/plugin-react";
|
||||
|
||||
export default defineConfig({
|
||||
|
@ -11,6 +12,9 @@ export default defineConfig({
|
|||
"/api": "http://127.0.0.1:4000",
|
||||
"/controller": "http://127.0.0.1:4000",
|
||||
},
|
||||
fs: {
|
||||
allow: [searchForWorkspaceRoot(process.cwd()), "../node_modules"],
|
||||
},
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue