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> <body>
<div id="app"></div> <div id="app"></div>
<script type="module" src="./_boot_.ts"></script> <script type="module" src="./_boot_.ts"></script>
<link href="/assets/tabler-icons/tabler-icons.min.css?v2.37.0'"> <link rel="stylesheet" href="/assets/tabler-icons/tabler-icons.min.css?v2.37.0">
<link href="./style.scss" /> <link rel="stylesheet" href="./style.scss" />
</body> </body>
</html> </html>

View File

@ -44,18 +44,28 @@ function toBase62(n: number): string {
export function getConfig(): UserConfig { export function getConfig(): UserConfig {
return { return {
root: "src", root: "src",
publicDir: "assets",
server: { server: {
port: 5173, port: 5173,
proxy: { proxy: {
'/api': { '/api': {
changeOrigin: true,
target: 'http://127.0.0.1:3000/', target: 'http://127.0.0.1:3000/',
}, },
'/assets': { '/assets': {
target: 'http://127.0.0.1:3000/', target: 'http://127.0.0.1:3000/',
}, },
'/twemoji': { '/twemoji': {
target: 'http://127.0.0.1:3000/', 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,
},
} }
}, },