some fix (tabler icons, sw, streaming)
This commit is contained in:
parent
84634484c2
commit
ddef9cab5f
|
@ -15,7 +15,7 @@
|
|||
<body>
|
||||
<div id="app"></div>
|
||||
<script type="module" src="./_boot_.ts"></script>
|
||||
<link href="/assets/tabler-icons/tabler-icons.min.css?v2.37.0'">
|
||||
<link href="./style.scss" />
|
||||
<link rel="stylesheet" href="/assets/tabler-icons/tabler-icons.min.css?v2.37.0">
|
||||
<link rel="stylesheet" href="./style.scss" />
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -44,18 +44,28 @@ function toBase62(n: number): string {
|
|||
export function getConfig(): UserConfig {
|
||||
return {
|
||||
root: "src",
|
||||
publicDir: "assets",
|
||||
server: {
|
||||
port: 5173,
|
||||
proxy: {
|
||||
'/api': {
|
||||
changeOrigin: true,
|
||||
target: 'http://127.0.0.1:3000/',
|
||||
},
|
||||
|
||||
'/assets': {
|
||||
target: 'http://127.0.0.1:3000/',
|
||||
},
|
||||
'/twemoji': {
|
||||
target: 'http://127.0.0.1:3000/',
|
||||
},
|
||||
'/sw.js': {
|
||||
target: 'http://127.0.0.1:3000/',
|
||||
},
|
||||
'/streaming': {
|
||||
target: 'ws://127.0.0.1:3000/',
|
||||
ws: true,
|
||||
},
|
||||
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue