Skip to content

Feat/docker - #243

Merged
usmanimamu17-create merged 4 commits into
ApexChainx:mainfrom
DevMuhdishaq:feat/Docker
Jul 29, 2026
Merged

Feat/docker#243
usmanimamu17-create merged 4 commits into
ApexChainx:mainfrom
DevMuhdishaq:feat/Docker

Conversation

@DevMuhdishaq

Copy link
Copy Markdown
Contributor

Closes #144

Description

Closes #145

Type of Change

Related Issue

Testing

Checklist

  • Code follows ApexChain style guidelines
  • Self-review completed
  • Documentation updated
  • Tests pass locally (npm run test)
  • Build passes (npm run build)
  • Lint passes (npm run lint)

Screenshots

Additional Notes

akargi and others added 3 commits July 28, 2026 12:55
This commit introduces Sentry for application monitoring and updates the Next.js project configuration.

Key changes include:
- Integrated Sentry for error tracking and performance monitoring across client, server, and edge environments.
- Added Sentry-specific configuration files (`sentry.client.config.ts`, `sentry.server.config.ts`, `sentry.edge.config.ts`, `sentry.properties`).
- Migrated the Next.js configuration from `next.config.ts` to `next.config.mjs`.
- Introduced the `pages/` directory.
- Updated `.gitignore` to handle new configurations.
- Modified the E2E testing workflow to align with the updated project structure.
- Removed the `.env.example` file.
Problem: The frontend client forces withCredentials: true for all API requests, but the backend did not have a corresponding CORS configuration to handle this. This would cause requests from different origins to fail.

Solution:

Modified next.config.mjs to dynamically configure CORS headers for API routes.
The Access-Control-Allow-Origin header is now populated from the CORS_ALLOWLIST environment variable, which should contain a comma-separated list of allowed origins.
The Access-Control-Allow-Credentials header is set to true to support credentialed requests.
Updated docs/API.md to document the new CORS_ALLOWLIST environment variable and provide an example for developers.
This change allows for flexible configuration of allowed origins for different environments (e.g., localhost, staging, production) directly through environment variables.
…ase workflow

- Add multi-stage Dockerfile with deps, builder, and runner stages
- Enable Next.js standalone output for optimized container deployment
- Create .dockerignore to exclude unnecessary files from build context
- Add GitHub workflow to build and push images on tag pushes
- Support multi-arch builds (amd64, arm64) with semantic version tagging
- Run application as non-root user for enhanced security
- Expose port 3000 as required for production deployment
@drips-wave

drips-wave Bot commented Jul 28, 2026

Copy link
Copy Markdown

@DevMuhdishaq Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@usmanimamu17-create usmanimamu17-create left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@usmanimamu17-create
usmanimamu17-create merged commit 716d84a into ApexChainx:main Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

4 participants