Update web/client/package.json
Browse files- web/client/package.json +3 -3
web/client/package.json
CHANGED
@@ -7,10 +7,10 @@
|
|
7 |
"build:deploy": "npm run set-base-url && npm run build && npm run move-build-to-server",
|
8 |
"preview": "vite preview --port 4173",
|
9 |
"test:unit": "vitest --environment jsdom",
|
10 |
-
"move:assets": "
|
11 |
-
"move:index": "
|
12 |
"move-build-to-server": "npm run move:assets && npm run move:index",
|
13 |
-
"set-base-url": "echo VITE_BASE_URL=http://127.0.0.1
|
14 |
},
|
15 |
"dependencies": {
|
16 |
"axios": "^1.1.2",
|
|
|
7 |
"build:deploy": "npm run set-base-url && npm run build && npm run move-build-to-server",
|
8 |
"preview": "vite preview --port 4173",
|
9 |
"test:unit": "vitest --environment jsdom",
|
10 |
+
"move:assets": "rsync -a --delete ./dist/static/* ../server/static/",
|
11 |
+
"move:index": "cp -fr ./dist/index.html ../server/templates/",
|
12 |
"move-build-to-server": "npm run move:assets && npm run move:index",
|
13 |
+
"set-base-url": "rm -f .env.local && echo \"VITE_BASE_URL=http://127.0.0.1\" >| .env.local"
|
14 |
},
|
15 |
"dependencies": {
|
16 |
"axios": "^1.1.2",
|