Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Mihoub2 committed Oct 9, 2024
1 parent d82b88a commit 8b3a9b6
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .env.production
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
VITE_APP_NAME="DOADIFY PRODUCTION"
VITE_HEADER_TAG=
BASE_API_URL="https://ticket-office.dataesr.ovh"
VITE_BASE_API_URL="https://ticket-office.dataesr.ovh"
2 changes: 1 addition & 1 deletion .env.staging
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
VITE_APP_NAME="DOADIFY STAGING"
VITE_HEADER_TAG=Staging
BASE_API_URL="https://ticket-office.staging.dataesr.ovh"
VITE_BASE_API_URL="https://ticket-office.staging.dataesr.ovh"
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion client/src/api/send-mail/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function EmailSender({ contribution, refetch }: EmailSenderProps) {
);

const isDevelopment = import.meta.env.VITE_HEADER_TAG === "Development";
const url = import.meta.env.BASE_API_URL;
const url = import.meta.env.VITE_BASE_API_URL;
const apiBaseUrl = isDevelopment
? "http://localhost:3000/api/send-email"
: `${url}/api/send-email`;
Expand Down
2 changes: 1 addition & 1 deletion client/src/api/utils/buildURL.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const buildURL = (
fromApplication?: string
): string => {
const isDevelopment = import.meta.env.VITE_HEADER_TAG === "Development";
const url = import.meta.env.BASE_API_URL;
const url = import.meta.env.VITE_BASE_API_URL;
const baseApiUrl = isDevelopment ? "http://localhost:3000/api" : `${url}/api`;

let baseUrl = "contacts";
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/edit-modal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const EditModal: React.FC<EditModalProps> = ({
}

const isDevelopment = import.meta.env.VITE_HEADER_TAG === "Development";
const baseURL = import.meta.env.BASE_API_URL;
const baseURL = import.meta.env.VITE_BASE_API_URL;
const url = isDevelopment
? `http://localhost:3000/api/${basePath}/${data?.id}`
: `${baseURL}/api/${basePath}/${data?.id}`;
Expand Down
2 changes: 1 addition & 1 deletion client/src/config/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const contributionUrl = isDevelopment

export const contactUrl = isDevelopment
? "http://localhost:3000/api/contacts?max_results=2000"
: `${url}api/contacts?max_results=2000`;
: `${url}/api/contacts?max_results=2000`;

export const productionUrl = isDevelopment
? "http://localhost:3000/api/production?max_results=2000"
Expand Down

0 comments on commit 8b3a9b6

Please sign in to comment.