ui selector

This commit is contained in:
2026-03-13 14:59:32 -03:00
parent ccc478fbaa
commit d5a3372d6b
7 changed files with 173 additions and 11 deletions

2
ui/chunker/.dockerignore Normal file
View File

@@ -0,0 +1,2 @@
node_modules/
dist/

12
ui/chunker/Dockerfile Normal file
View File

@@ -0,0 +1,12 @@
FROM node:20-alpine
WORKDIR /app
COPY package.json ./
RUN npm install
COPY . .
EXPOSE 5174
CMD ["npm", "run", "dev"]

View File

@@ -2,11 +2,15 @@ import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
export default defineConfig({
base: "/chunker/",
plugins: [react()],
server: {
host: "0.0.0.0",
port: 5174,
allowedHosts: process.env.VITE_ALLOWED_HOSTS?.split(",") || [],
hmr: {
path: "/chunker/@vite/client",
},
proxy: {
"/api": {
target: "http://fastapi:8702",