Files
shop-server/client/vite.config.ts
T
@kirill.komarov 55480d4aa5 init project
2026-04-28 11:02:08 +05:00

26 lines
519 B
TypeScript

import path from 'node:path'
import { fileURLToPath } from 'node:url'
import react from '@vitejs/plugin-react'
import { defineConfig } from 'vite'
const rootDir = fileURLToPath(new URL('.', import.meta.url))
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
'@': path.resolve(rootDir, 'src'),
},
},
server: {
port: 5173,
proxy: {
'/api': {
target: 'http://127.0.0.1:3333',
changeOrigin: true,
},
},
},
})