feat: add deploy script that builds directly to ../public_html
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "vite build && vite build --ssr src/entry-server.jsx --outDir dist/server && node scripts/prerender.mjs",
|
||||
"deploy": "BUILD_DIR=../public_html vite build && BUILD_DIR=../public_html vite build --ssr src/entry-server.jsx --outDir ../public_html/server && BUILD_DIR=../public_html node scripts/prerender.mjs",
|
||||
"preview": "vite preview"
|
||||
},
|
||||
"dependencies": {
|
||||
|
||||
Reference in New Issue
Block a user