mirror of
https://github.com/sergeyyarkov/educt-client.git
synced 2026-10-11 02:09:08 +03:00
.
This commit is contained in:
parent
d03e4ef98f
commit
0568bad99d
26
deploy.sh
26
deploy.sh
@ -1,26 +0,0 @@
|
|||||||
#!/usr/bin/env sh
|
|
||||||
|
|
||||||
# abort on errors
|
|
||||||
set -e
|
|
||||||
|
|
||||||
# build
|
|
||||||
npm run build
|
|
||||||
|
|
||||||
# navigate into the build output directory
|
|
||||||
cd dist
|
|
||||||
|
|
||||||
# if you are deploying to a custom domain
|
|
||||||
# echo 'www.example.com' > CNAME
|
|
||||||
|
|
||||||
git init
|
|
||||||
git checkout -b main
|
|
||||||
git add -A
|
|
||||||
git commit -m 'deploy'
|
|
||||||
|
|
||||||
# if you are deploying to https://<USERNAME>.github.io
|
|
||||||
# git push -f git@github.com:<USERNAME>/<USERNAME>.github.io.git main
|
|
||||||
|
|
||||||
# if you are deploying to https://<USERNAME>.github.io/<REPO>
|
|
||||||
# git push -f git@github.com:sergeyyarkov/educt-client.git main:gh-pages
|
|
||||||
|
|
||||||
cd -
|
|
||||||
@ -16,7 +16,6 @@ function renderChunks(deps: Record<string, string>) {
|
|||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
root: './',
|
root: './',
|
||||||
base: '/educt-client/',
|
|
||||||
publicDir: 'public',
|
publicDir: 'public',
|
||||||
plugins: [react()],
|
plugins: [react()],
|
||||||
server: {
|
server: {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user