diff --git a/Dockerfile b/Dockerfile index 68b9dca..6920d95 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,7 @@ FROM node:22-alpine AS build +ENV HOSTNAME="0.0.0.0" + WORKDIR /app COPY package*.json ./ @@ -10,4 +12,4 @@ COPY . . RUN npm run build -CMD ["npm", "start"] \ No newline at end of file +CMD ["node", ".next/standalone/server.js"] \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 2095b5e..5e0e690 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,6 +5,8 @@ services: context: . dockerfile: Dockerfile environment: + - NEXTAUTH_URL="https://f1r3wave.photos" + - AUTH_URL="https://f1r3wave.photos" - AUTH_SECRET="your-super-secret-key-here-generate-with-openssl-rand-base64-32" - ADMIN_TOKEN="your-admin-secret-token-123" ports: diff --git a/next.config.ts b/next.config.ts index 4ffdf4f..27b6281 100644 --- a/next.config.ts +++ b/next.config.ts @@ -1,6 +1,7 @@ import type { NextConfig } from "next"; const nextConfig: NextConfig = { + output: "standalone", experimental: { serverActions: { bodySizeLimit: "10gb",