some fix (tabler icons, sw, streaming)

This commit is contained in:
FruitRiin 2023-11-19 14:22:57 +09:00
parent 84634484c2
commit ddef9cab5f
2 changed files with 12 additions and 2 deletions

View File

@ -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>

View File

@ -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,
},
}
},