From bd78b28f3cde0459338ee142dec26185c59302be Mon Sep 17 00:00:00 2001 From: k4rli Date: Mon, 4 Aug 2025 18:23:52 +0300 Subject: [PATCH] feat(MED-131): move dev envs to .env.development --- .env | 12 ------------ .env.development | 15 +++++++++++++++ .../services/montonio-order-handler.service.ts | 2 +- 3 files changed, 16 insertions(+), 13 deletions(-) diff --git a/.env b/.env index 14a35b4..d51bae8 100644 --- a/.env +++ b/.env @@ -5,7 +5,6 @@ # TO OVERRIDE THESE VARIABLES IN A SPECIFIC ENVIRONMENT, PLEASE ADD THEM TO THE SPECIFIC ENVIRONMENT FILE (e.g. .env.development, .env.production) # SITE -NEXT_PUBLIC_SITE_URL=https://localhost:3000 NEXT_PUBLIC_PRODUCT_NAME=MedReport NEXT_PUBLIC_SITE_TITLE="MedReport" NEXT_PUBLIC_SITE_DESCRIPTION="MedReport." @@ -65,14 +64,3 @@ NEXT_PUBLIC_TEAM_NAVIGATION_STYLE=custom NEXT_PUBLIC_USER_NAVIGATION_STYLE=custom NEXT_PUBLIC_MEDUSA_PUBLISHABLE_KEY= - -NEXT_PUBLIC_MONTONIO_ACCESS_KEY=7da5d7fa-3383-4997-9435-46aa818f4ead -MONTONIO_SECRET_KEY=rNZkzwxOiH93mzkdV53AvhSsbGidrgO2Kl5lE/IT7cvo -MONTONIO_API_URL=https://sandbox-stargate.montonio.com - -# MEDUSA -MEDUSA_BACKEND_URL=http://localhost:9000 -MEDUSA_BACKEND_PUBLIC_URL=http://localhost:9000 - -# JOBS -JOBS_API_TOKEN=73ce073c-6dd4-11f0-8e75-8fee89786197 diff --git a/.env.development b/.env.development index dc017e4..80637fc 100644 --- a/.env.development +++ b/.env.development @@ -1,6 +1,9 @@ # This file is used to define environment variables for the development environment. # These values are only used when running the app in development mode. +# SITE +NEXT_PUBLIC_SITE_URL=https://localhost:3000 + # SUPABASE DEVELOPMENT ## THIS IS FOR DEVELOPMENT ONLY - DO NOT USE IN PRODUCTION @@ -21,3 +24,15 @@ EMAIL_HOST=localhost # refer to your email provider's documentation EMAIL_PORT=1025 # or 465 for SSL EMAIL_TLS=false NODE_TLS_REJECT_UNAUTHORIZED=0 + +# MEDUSA +MEDUSA_BACKEND_URL=http://localhost:9000 +MEDUSA_BACKEND_PUBLIC_URL=http://localhost:9000 + +# MONTONIO +NEXT_PUBLIC_MONTONIO_ACCESS_KEY=7da5d7fa-3383-4997-9435-46aa818f4ead +MONTONIO_SECRET_KEY=rNZkzwxOiH93mzkdV53AvhSsbGidrgO2Kl5lE/IT7cvo +MONTONIO_API_URL=https://sandbox-stargate.montonio.com + +# JOBS +JOBS_API_TOKEN=73ce073c-6dd4-11f0-8e75-8fee89786197 diff --git a/packages/billing/montonio/src/services/montonio-order-handler.service.ts b/packages/billing/montonio/src/services/montonio-order-handler.service.ts index ffa06f0..5a34ab6 100644 --- a/packages/billing/montonio/src/services/montonio-order-handler.service.ts +++ b/packages/billing/montonio/src/services/montonio-order-handler.service.ts @@ -56,7 +56,7 @@ export class MontonioOrderHandlerService { if (error instanceof AxiosError) { console.error(error.response?.data); } - console.error(error); + console.error("Failed to create payment link, params=${JSON.stringify(params)}", error); throw new Error("Failed to create payment link"); } }