Skip to content

Commit

Permalink
Add: GitBook URL to the environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
georgiganchev-7DIGIT committed Jan 8, 2024
1 parent 2ec0557 commit 131d4a3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
5 changes: 3 additions & 2 deletions .env.development
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
VITE_API_ENDPOINT=https://staging.usupport.online/api
VITE_API_ENDPOINT=http://localhost:3000/api
VITE_CMS_API_URL=https://staging.usupport.online/cms/api
VITE_AMAZON_S3_BUCKET=https://usupport-staging.s3.eu-central-1.amazonaws.com
VITE_WEBSITE_URL=https://staging.usupport.online
VITE_SOCKET_IO_URL=wss://staging.usupport.online
VITE_STRIPE_PUBLIC_KEY=pk_test_51MPzPVEFe7qoLe5D8bfwXpGuYvL0I98ui3P2lfM1cWoG1b0oRU8GfXBzWnXMrivdRwR7gXXngkjiNxm85PXv4B1400jL8VhSUh
VITE_RECAPTCHA_SITE_KEY=6LeXgo4mAAAAAGZE3yzXq2datUkSUu2ftwTPj27K
VITE_RECAPTCHA_SITE_KEY=6LeXgo4mAAAAAGZE3yzXq2datUkSUu2ftwTPj27K
VITE_GIT_BOOK_URL="https://7digit-1.gitbook.io/usupport/y0yJCW2nZ6Sb52p4arjv"
3 changes: 2 additions & 1 deletion .env.production
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ VITE_API_ENDPOINT=
VITE_CMS_API_URL=
VITE_AMAZON_S3_BUCKET=https://usupport-production.s3.eu-central-1.amazonaws.com
VITE_WEBSITE_URL=https://usupport.online
VITE_STRIPE_PUBLIC_KEY=
VITE_STRIPE_PUBLIC_KEY=
VITE_GIT_BOOK_URL="https://7digit-1.gitbook.io/usupport/y0yJCW2nZ6Sb52p4arjv"
3 changes: 2 additions & 1 deletion .env.staging
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ VITE_AMAZON_S3_BUCKET=https://usupport-staging.s3.eu-central-1.amazonaws.com
VITE_WEBSITE_URL=https://staging.usupport.online
VITE_SOCKET_IO_URL=wss://staging.usupport.online
VITE_STRIPE_PUBLIC_KEY=pk_test_51MPzPVEFe7qoLe5D8bfwXpGuYvL0I98ui3P2lfM1cWoG1b0oRU8GfXBzWnXMrivdRwR7gXXngkjiNxm85PXv4B1400jL8VhSUh
VITE_RECAPTCHA_SITE_KEY=6LeXgo4mAAAAAGZE3yzXq2datUkSUu2ftwTPj27K
VITE_RECAPTCHA_SITE_KEY=6LeXgo4mAAAAAGZE3yzXq2datUkSUu2ftwTPj27K
VITE_GIT_BOOK_URL="https://7digit-1.gitbook.io/usupport/y0yJCW2nZ6Sb52p4arjv"
8 changes: 2 additions & 6 deletions src/blocks/UserProfile/UserProfile.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { useGetClientData } from "#hooks";
import "./user-profile.scss";

const AMAZON_S3_BUCKET = `${import.meta.env.VITE_AMAZON_S3_BUCKET}`;
const GIT_BOOK_URL = `${import.meta.env.VITE_GIT_BOOK_URL}`;

/**
* UserProfile
Expand Down Expand Up @@ -137,12 +138,7 @@ export const UserProfile = ({ openModal, isTmpUser }) => {
label={t("user_guide")}
iconName="document"
classes="user-profile__grid__item__button"
onClick={() =>
window.open(
"https://7digit-1.gitbook.io/usupport/y0yJCW2nZ6Sb52p4arjv",
"_blank"
)
}
onClick={() => window.open(GIT_BOOK_URL, "_blank")}
/>
<ButtonSelector
label={t("FAQ_button_label")}
Expand Down

0 comments on commit 131d4a3

Please sign in to comment.