init: frontend

This commit is contained in:
snusxd
2026-04-10 00:41:21 +03:00
commit d2b5489001
26 changed files with 4022 additions and 0 deletions

26
vite.config.ts Normal file
View File

@@ -0,0 +1,26 @@
import { fileURLToPath, URL } from 'node:url'
import Components from 'unplugin-vue-components/vite'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import vueDevTools from 'vite-plugin-vue-devtools'
// https://vite.dev/config/
export default defineConfig({
plugins: [vue(), vueDevTools(), Components()],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
},
},
server: {
proxy: {
'/caa-api': {
target: 'http://coverartarchive.org',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/caa-api/, ''),
followRedirects: true,
},
},
},
})