devicetypeAPIGET1

This commit is contained in:
QuangMinh_123
2026-05-21 12:01:10 +07:00
parent 86383e7c03
commit 7aebcf9567
35 changed files with 2784 additions and 145 deletions

View File

@@ -1,7 +1,22 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import { defineConfig } from 'vite';
import { createHtmlPlugin } from 'vite-plugin-html';
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
})
plugins: [
createHtmlPlugin({
minify: true,
entry: '/src/main.js',
template: 'index.html',
}),
],
server: {
port: 5173,
open: true,
proxy: {
'/api': {
target: 'http://localhost:5000', // Backend Flask của bạn
changeOrigin: true,
}
}
}
});