Skip to content

Commit

Permalink
chore: 配置打包子目录
Browse files Browse the repository at this point in the history
  • Loading branch information
BrendanEichDisciple committed Aug 9, 2024
1 parent fdd726f commit 6421b6b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .env.development
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
VITE_BASE=/
VITE_BASE_URL=http://localhost:3000/api/v1
2 changes: 2 additions & 0 deletions .env.production
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
VITE_BASE=/hospital/
VITE_BASE_URL=http://localhost:3000/api/v1
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
uses: easingthemes/ssh-deploy@main
with:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
ARGS: '-rlgoDzvc -i --delete'
ARGS: '-rlgoDzvc -i'
SOURCE: 'package.json build/'
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
REMOTE_USER: ${{ secrets.REMOTE_USER }}
Expand Down
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ node_modules
/build
/.svelte-kit
/package
.env
.env.*
*.local
!.env.example
vite.config.js.timestamp-*
vite.config.ts.timestamp-*
1 change: 1 addition & 0 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import dotenv from 'dotenv';
dotenv.config();

export default defineConfig({
base: process.env.VITE_BASE || '/',
plugins: [sveltekit()],
server: {
proxy: {
Expand Down

0 comments on commit 6421b6b

Please sign in to comment.