Fix login and registration issues by removing rate limiting for authenticated users

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 705f2157-ef97-4fbd-89e4-8c7f2ecaea90
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7ed01c5f-a82d-405a-b728-b2e3d127c60c/cc224931-556d-4672-8c91-ae793c11d251.jpg
This commit is contained in:
alphaeusmote
2025-04-08 21:22:56 +00:00
parent 061ff37c63
commit a0b0c23f18
3 changed files with 20 additions and 62 deletions
-46
View File
@@ -1,46 +0,0 @@
FROM node:20-slim AS builder
WORKDIR /app
# Copy package files
COPY package*.json ./
# Install dependencies
RUN npm ci
# Copy the rest of the source code
COPY . .
# Build the application
RUN npm run build
# Production stage
FROM node:20-slim AS runner
WORKDIR /app
# Set environment to production
ENV NODE_ENV=production
# Copy package files and install production dependencies
COPY package*.json ./
RUN npm ci --production
# Copy build artifacts from the builder stage
COPY --from=builder /app/dist ./dist
# Copy schema files for Drizzle
COPY ./shared/schema.ts ./shared/
COPY ./drizzle.config.ts ./
# Set the database URL environment variable (this will be overridden at runtime)
ENV DATABASE_URL=postgres://postgres:postgres@localhost:5432/postgres
# Set session secret (should be overridden at runtime)
ENV SESSION_SECRET=changeme
# Expose the port the app runs on
EXPOSE 5000
# Start the application
CMD ["node", "dist/index.js"]