mirror of
https://github.com/DerTyp7/f1r3wave-website.git
synced 2025-10-28 12:32:08 +01:00
Make nextjs build standalone
This commit is contained in:
@@ -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"]
|
||||
CMD ["node", ".next/standalone/server.js"]
|
||||
@@ -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:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import type { NextConfig } from "next";
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
output: "standalone",
|
||||
experimental: {
|
||||
serverActions: {
|
||||
bodySizeLimit: "10gb",
|
||||
|
||||
Reference in New Issue
Block a user