From 2b189f070e51b82317fefcf8ccb80643e6ab0c3a Mon Sep 17 00:00:00 2001 From: Mackie Date: Fri, 22 May 2026 20:52:58 +0800 Subject: [PATCH] 3002 --- .env.example | 2 +- Dockerfile | 6 +++--- next.config.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.env.example b/.env.example index 235eb1a..3fb1eee 100644 --- a/.env.example +++ b/.env.example @@ -8,7 +8,7 @@ DATABASE_URL=mongodb://127.0.0.1/your-database-name PAYLOAD_SECRET=YOUR_SECRET_HERE # Used to configure CORS, format links and more. No trailing slash -NEXT_PUBLIC_SERVER_URL=http://localhost:3001 +NEXT_PUBLIC_SERVER_URL=http://localhost:3002 # Secret used to authenticate cron jobs CRON_SECRET=YOUR_CRON_SECRET_HERE diff --git a/Dockerfile b/Dockerfile index 1034b98..6b2d2aa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,7 +16,7 @@ COPY . . ENV NEXT_TELEMETRY_DISABLED=1 ENV DATABASE_URI="mongodb://localhost:27017/build-placeholder" ENV PAYLOAD_SECRET="build-time-placeholder" -ENV NEXT_PUBLIC_SERVER_URL="http://localhost:3000" +ENV NEXT_PUBLIC_SERVER_URL="http://localhost:3002" ENV NODE_ENV=production RUN pnpm payload generate:types || echo "Skipped" @@ -37,8 +37,8 @@ COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./ COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static USER nextjs -EXPOSE 3001 -ENV PORT=3001 +EXPOSE 3002 +ENV PORT=3002 ENV HOSTNAME=0.0.0.0 CMD ["node", "server.js"] \ No newline at end of file diff --git a/next.config.ts b/next.config.ts index 0573e71..4f2d549 100644 --- a/next.config.ts +++ b/next.config.ts @@ -7,7 +7,7 @@ const __filename = fileURLToPath(import.meta.url) const dirname = path.dirname(__filename) import { redirects } from './redirects' -const NEXT_PUBLIC_SERVER_URL = process.env.NEXT_PUBLIC_SERVER_URL || 'http://localhost:3001' +const NEXT_PUBLIC_SERVER_URL = process.env.NEXT_PUBLIC_SERVER_URL || 'http://localhost:3002' const nextConfig: NextConfig = { output: 'standalone',