Refactor task list example application

This commit is contained in:
Steve Kinney
2024-09-18 07:52:42 -06:00
parent e29c63f5cb
commit 2a8720330e
26 changed files with 535 additions and 326 deletions

View File

@@ -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,
},