Files
hn-reader/vite.config.ts
T

25 lines
496 B
TypeScript
Raw Normal View History

import path from 'path'
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import tailwindcss from '@tailwindcss/vite'
// https://vite.dev/config/
export default defineConfig({
plugins: [react(), tailwindcss()],
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
server: {
port: 3012,
strictPort: true,
proxy: {
'/api': {
target: 'http://localhost:3013',
changeOrigin: true,
},
},
},
})