Commit Graph
22 Commits
Author SHA1 Message Date
hamedandClaude Fable 5 2fbd24b4aa chore: remove unused NEXT_PUBLIC_CLIENT_ID/SECRET env vars
The OAuth flow uses grant_type=mobile with a server-issued grant
(app/api/auth/token/route.js); no client_id/client_secret is sent at
runtime. These vars were dead — removed from Dockerfile args/env,
docker-compose, nixpacks, and docs. Also silences the Coolify
'variable not set' build warnings.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-06 11:09:19 +03:30
hamedandClaude Sonnet 4.6 1aa9f82d2a fix: resolve critical bugs and security issues across the project
- Fix GPS map links always sending literal "latitude"/"longitude" strings
  instead of actual coordinates in openLocation/Content.js
- Add api.clinic-pro.ir to next.config.js remotePatterns so production
  images load correctly
- Fix appointment page: await params and getStateInfo (Next.js 15 pattern)
- Enable 401 handling in api.js: clear cookies and redirect to /login
- Move OAuth client_secret to server-side API routes (/api/auth/token,
  /api/auth/refresh) so it is never bundled into client-side JavaScript
- Update SendReq, SubmitData, ButtonSendData to call API routes instead
  of directly sending client_secret from the browser
- Update docker-compose.yml to use server-only CLIENT_SECRET env var
- Remove debug console.log from clinic doctors list component

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-05 22:18:11 +03:30
hamed cf703f131a fix: update environment variables in docker-compose.yml to use default values 2025-12-23 11:27:59 +03:30
hamed 5d8c7cef1d fix: update NEXT_PUBLIC_API_URL to use default value if not set 2025-12-23 10:09:57 +03:30
hamed a844ac20e7 Remove pull_policy - not supported in build section 2025-12-10 15:24:53 +03:30
hamed 3daa4cf333 refactor: update Dockerfile and docker-compose.yml for Next.js 15 compatibility and improved production setup 2025-12-10 15:16:28 +03:30
hamed 5c52dcda76 refactor: update Dockerfile and docker-compose.yml for Next.js 15 compatibility and improved production setup 2025-12-10 14:50:41 +03:30
hamed 8e5e8e1e9d refactor: update Dockerfile and docker-compose.yml for Next.js 15 optimization and standalone output 2025-12-10 14:44:41 +03:30
hamed 6f0c29d700 chore: update dependencies and add .dockerignore file
- Updated MUI packages to version 5.x and x-charts/x-date-pickers to 7.x
- Downgraded React and React-DOM to version 18.3.1
- Added .dockerignore to exclude unnecessary files from Docker context
2025-12-10 14:06:19 +03:30
hamed 76e96f1724 refactor: update Dockerfile and docker-compose.yml for Next.js 16 optimization and improved build process 2025-12-10 11:00:38 +03:30
hamed 305d79d5f4 add DEV_MODE support to metadata generation and robots handling; update .gitignore and docker-compose for environment variables 2025-10-11 15:26:26 +03:30
hamed 234bcf5aca refactor: remove hardcoded NODE_ENV value from docker-compose.yml 2025-09-28 15:48:17 +03:30
hamed fe9d9a4500 refactor: update NODE_ENV handling in Dockerfile and docker-compose.yml for better environment configuration 2025-09-28 14:30:00 +03:30
hamed 7a51b00732 set port for build 2025-06-30 18:48:30 +03:30
hamed 915e50b6a4 set port for build 2025-06-30 18:27:33 +03:30
hamed 36f3658801 set port 2025-06-30 18:11:11 +03:30
hamed bb983bd1ab set port 2025-06-30 18:04:57 +03:30
hamed c8e8048d6c add port 2025-05-28 09:21:33 +03:30
hamed 9929eeffd0 fix docker compose 2025-05-28 09:05:50 +03:30
hamed 969a14d9b6 Add docker compose 2025-05-28 08:55:58 +03:30
hamed b1fea27f0e add dockercompose 2025-04-09 10:59:34 +03:30
hamed c2548e2700 add dockrize 2025-04-09 10:58:22 +03:30