Skip to content

Commit

Permalink
Fix vite build
Browse files Browse the repository at this point in the history
  • Loading branch information
syifan committed Sep 2, 2023
1 parent 3b22905 commit f770302
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 17 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions daisen/static/dist/assets/index-cb2683a6.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions daisen/static/dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@

<script src="http://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>

<script type="module" crossorigin src="/assets/index-b552fa93.js"></script>
<link rel="stylesheet" href="/assets/index-d82fa2fd.css">
<script type="module" crossorigin src="/assets/index-cb2683a6.js"></script>
<link rel="stylesheet" href="/assets/index-a4d92300.css">
</head>

<body>
Expand Down
25 changes: 14 additions & 11 deletions daisen/static/vite.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
import { defineConfig } from 'vite'
import { defineConfig } from "vite";

export default defineConfig ({
server: {
proxy: {
'/api': {
target: 'http://localhost:3001',
changeOrigin: true,
}
}
}
})
export default defineConfig({
build: {
sourcemap: true,
},
server: {
proxy: {
"/api": {
target: "http://localhost:3001",
changeOrigin: true,
},
},
},
});

0 comments on commit f770302

Please sign in to comment.