This commit is contained in:
Meghdad committed 2026-07-14 12:51:36 +03:30
commit f035fcef4f
134 files changed
+18678

No files matched your search

+36
View File
@@ -0,0 +1,36 @@
import { fileURLToPath, URL } from 'node:url'
import vue from '@vitejs/plugin-vue'
import { defineConfig } from 'vite'
export default defineConfig({
plugins: [vue()],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
},
},
server: {
port: 5173,
proxy: {
'/api': {
target: process.env.API_ORIGIN ?? 'http://127.0.0.1:3000',
changeOrigin: true,
},
'/images/tmdb': {
target: 'https://image.tmdb.org',
changeOrigin: true,
rewrite: (requestPath) => requestPath.replace(/^\/images\/tmdb/, '/t/p'),
},
},
},
worker: {
format: 'es',
},
test: {
environment: 'jsdom',
globals: true,
setupFiles: ['./src/test/setup.ts'],
css: false,
},
})