diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..7a81091 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM oven/bun:1 AS build +WORKDIR /app +COPY . . +RUN bun install --frozen-lockfile +RUN bunx --bun vite build + +FROM nginx:alpine +COPY nginx.conf /etc/nginx/conf.d/default.conf +COPY --from=build /app/dist /usr/share/nginx/html +EXPOSE 80 diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..79fd959 --- /dev/null +++ b/nginx.conf @@ -0,0 +1,11 @@ +server { + listen 80; + server_name _; + + root /usr/share/nginx/html; + index index.html; + + location / { + try_files $uri $uri/ /index.html; + } +} diff --git a/nixpacks.toml b/nixpacks.toml index e79e665..4fd142b 100644 --- a/nixpacks.toml +++ b/nixpacks.toml @@ -2,4 +2,4 @@ cmds = ["bun install --frozen-lockfile"] [phases.build] -cmds = ["bun run build"] +cmds = ["bunx --bun vite build"] \ No newline at end of file diff --git a/src/components/ui/Input.tsx b/src/components/ui/input.tsx similarity index 100% rename from src/components/ui/Input.tsx rename to src/components/ui/input.tsx diff --git a/src/routes/dashboard.tsx b/src/routes/dashboard.tsx index 60f77e0..2dc7df5 100644 --- a/src/routes/dashboard.tsx +++ b/src/routes/dashboard.tsx @@ -58,7 +58,7 @@ function RouteComponent() { className="group text-muted-foreground hover:text-primary flex items-center gap-1.5 text-sm font-medium transition-colors" > Ver todos - {/* La flecha se mueve a la derecha al hacer hover en el grupo */} + {/* La flecha se mueve a la derecha al hacer hover en el grupoo */}