Refactor task list example application
This commit is contained in:
@@ -2,13 +2,15 @@ import { defineConfig } from 'vite';
|
||||
import react from '@vitejs/plugin-react';
|
||||
import { css } from 'css-configuration';
|
||||
|
||||
const PORT = process.env.PORT || 3000;
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
css,
|
||||
server: {
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: 'http://localhost:3000',
|
||||
target: `http://localhost:${PORT}`,
|
||||
changeOrigin: true,
|
||||
secure: false,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user