- Updated frontend credit type - Updated sorting of entry credits in `getEntryById()`
26 lines
610 B
TypeScript
26 lines
610 B
TypeScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
import tailwindcss from '@tailwindcss/vite'
|
|
import path from 'path'
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react(), tailwindcss()],
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, './src'),
|
|
},
|
|
},
|
|
server: {
|
|
port: 4200,
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://showyback.coolguy.space',
|
|
// target: 'http://localhost:4000',
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
allowedHosts: ['localhost', 'showyback.coolguy.space', 'showy.coolguy.space'],
|
|
},
|
|
})
|