diff --git a/Dockerfile b/Dockerfile index 779b760..3748842 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,20 +4,20 @@ ENV NEXT_TELEMETRY_DISABLED=1 FROM base AS deps COPY package.json pnpm-lock.yaml ./ -RUN npm config set registry https://hub.megan.ir/npm +# RUN npm config set registry https://hub.megan.ir/npm RUN npm i -g pnpm RUN pnpm install --frozen-lockfile FROM base AS builder COPY --from=deps /app/node_modules ./node_modules COPY . . -RUN npm config set registry https://hub.megan.ir/npm +# RUN npm config set registry https://hub.megan.ir/npm RUN npm install -g pnpm RUN pnpm build FROM node:20-alpine AS runner WORKDIR /app -ARG PORT=5000 +ARG PORT=3000 ENV NODE_ENV=production ENV NEXT_TELEMETRY_DISABLED=1 ENV PORT=$PORT diff --git a/docker-compose.yml b/docker-compose.yml index dfd2c17..279a5b4 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,7 +4,7 @@ services: context: . dockerfile: Dockerfile args: - PORT: ${PORT:-5000} + PORT: ${PORT:-3000} image: pasargad-bricks:latest container_name: pasargad-bricks restart: unless-stopped diff --git a/next-sitemap.config.js b/next-sitemap.config.js index 886f5f5..765faa0 100644 --- a/next-sitemap.config.js +++ b/next-sitemap.config.js @@ -13,6 +13,6 @@ module.exports = { exclude: ['/api/*', '/_next/*'], // If you want to include additional sitemaps (for subdirectories, etc.) // additionalSitemaps: [ - // `${process.env.SITE_URL || 'http://localhost:5000'}/custom-sitemap.xml`, + // `${process.env.SITE_URL || 'http://localhost:3000'}/custom-sitemap.xml`, // ], };