Files
ui/vite.config.ts
T
Oleksandr Bezdieniezhnykh 27351e83d2 chore: update API configuration and enhance authentication handling
- Updated Vite configuration to use the production API endpoint.
- Modified TypeScript build info to include new config file.
- Refactored API client to support authenticated URLs.
- Updated various components to utilize the new authenticated API URL for media fetching.
- Removed obsolete CSS and JS files from the distribution directory.
2026-06-24 18:12:41 +03:00

23 lines
453 B
TypeScript

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import tailwindcss from '@tailwindcss/vite'
import path from 'path'
export default defineConfig({
plugins: [react(), tailwindcss()],
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
server: {
proxy: {
'/api': {
target: 'https://api.azaion.com',
changeOrigin: true,
secure: true,
},
},
},
})