Skip to content

Commit

Permalink
Refactor build and deployment workflow for web and API integration
Browse files Browse the repository at this point in the history
  • Loading branch information
swuecho committed Aug 30, 2024
1 parent bd1bd7c commit 550329c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 85 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ jobs:
npm install
npm run build
working-directory: web
- name: copy to api/static
run: |
cp -R web/dist/* api/static/
- name: Set up Go
uses: actions/setup-go@v3
with:
Expand Down
3 changes: 2 additions & 1 deletion api/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
tmp/
chat_backend
env.sh
static/static
static/static
static/index.html
81 changes: 0 additions & 81 deletions api/static/index.html

This file was deleted.

5 changes: 5 additions & 0 deletions web/rsbuild.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ export default defineConfig({
index: './src/main.ts',
},
},
output: {
distPath: {
root: '../api/static/',
}
},
plugins: [
pluginVue(),
pluginLess(),
Expand Down

0 comments on commit 550329c

Please sign in to comment.