diff --git a/frontend/Dockerfile.prod b/frontend/Dockerfile.prod deleted file mode 100644 index 0248caa..0000000 --- a/frontend/Dockerfile.prod +++ /dev/null @@ -1,14 +0,0 @@ -# Stage 1: Build -FROM node:20-slim AS build -RUN corepack enable && corepack prepare pnpm@latest --activate -WORKDIR /app -COPY package.json pnpm-lock.yaml ./ -RUN pnpm install --frozen-lockfile -COPY . . -RUN pnpm run build - -# Stage 2: Serve -FROM nginx:alpine -COPY --from=build /app/dist /usr/share/nginx/html -COPY nginx.conf /etc/nginx/conf.d/default.conf -EXPOSE 80 diff --git a/frontend/nginx.conf b/frontend/nginx.conf deleted file mode 100644 index 58f7d1e..0000000 --- a/frontend/nginx.conf +++ /dev/null @@ -1,31 +0,0 @@ -server { - listen 80; - root /usr/share/nginx/html; - index index.html; - - # SPA fallback - location / { - try_files $uri $uri/ /index.html; - } - - # Proxy API to backend (same docker network) - location /api/ { - proxy_pass http://wealthysmart-backend-prod:8000; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_read_timeout 120s; - } - - # No cache for service worker - location /sw.js { - add_header Cache-Control "no-cache"; - } - - # Cache immutable assets - location /assets/ { - expires 1y; - add_header Cache-Control "public, immutable"; - } -} diff --git a/frontend/public/favicon.svg b/frontend/public/favicon.svg deleted file mode 100644 index c068e8c..0000000 --- a/frontend/public/favicon.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - W - diff --git a/frontend/public/manifest.json b/frontend/public/manifest.json deleted file mode 100644 index 3b2908e..0000000 --- a/frontend/public/manifest.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "name": "WealthySmart", - "short_name": "WealthySmart", - "description": "Smart personal finance management", - "start_url": "/", - "display": "standalone", - "background_color": "#0f172a", - "theme_color": "#0f172a", - "icons": [ - { - "src": "/icons/icon-192.png", - "sizes": "192x192", - "type": "image/png" - }, - { - "src": "/icons/icon-512.png", - "sizes": "512x512", - "type": "image/png" - }, - { - "src": "/icons/icon-512.png", - "sizes": "512x512", - "type": "image/png", - "purpose": "maskable" - } - ] -} diff --git a/frontend/src/vite-env.d.ts b/frontend/src/vite-env.d.ts deleted file mode 100644 index 11f02fe..0000000 --- a/frontend/src/vite-env.d.ts +++ /dev/null @@ -1 +0,0 @@ -///