Refactor docs structure and update API env config
Moved documentation files into a new docs/ directory and added a documentation index (docs/README.md). Updated the main README with improved project and documentation details. Set explicit API environment variables in Dockerfile for production. Enhanced next.config.mjs with improved API_BASE_URL handling and logging for better deployment clarity.
This commit is contained in:
@@ -40,9 +40,9 @@ EXPOSE 3000
|
||||
ENV NODE_ENV=production
|
||||
ENV NEXT_PUBLIC_API_URL=/api
|
||||
# Backend API URL should be set via deployment environment
|
||||
# ENV SERVER_API_URL=set_via_deployment
|
||||
# ENV API_BASE_URL=set_via_deployment
|
||||
# ENV API_HOSTNAME=set_via_deployment
|
||||
ENV SERVER_API_URL=https://internal-api.inboxi.ng/api
|
||||
ENV API_BASE_URL=https://internal-api.inboxi.ng
|
||||
ENV API_HOSTNAME=internal-api.inboxi.ng
|
||||
|
||||
# Set GIT_COMMIT_SHA environment variable in the final image by reading the file
|
||||
ENV GIT_COMMIT_SHA="$(cat /app/git_commit_sha)"
|
||||
|
||||
Reference in New Issue
Block a user