25 lines
627 B
TypeScript
25 lines
627 B
TypeScript
import path from 'node:path'
|
|
import tailwindcss from '@tailwindcss/vite'
|
|
import { defineConfig } from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [vue(), tailwindcss()],
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(import.meta.dirname, './src'),
|
|
},
|
|
},
|
|
server: {
|
|
proxy: {
|
|
'/health': 'http://127.0.0.1:8080',
|
|
'/ready': 'http://127.0.0.1:8080',
|
|
'/stats': 'http://127.0.0.1:8080',
|
|
'/search': 'http://127.0.0.1:8080',
|
|
'/contents': 'http://127.0.0.1:8080',
|
|
'/torrents': 'http://127.0.0.1:8080',
|
|
},
|
|
},
|
|
})
|