Skip to content

Commit

Permalink
fix urls (#92)
Browse files Browse the repository at this point in the history
Co-authored-by: vterentev <vaterentev@icloud.com>
  • Loading branch information
Scondic and vterentev authored Nov 10, 2024
1 parent 4ee663f commit 3d0062a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Добавить файл `.env`

```env
NEXT_PUBLIC_BASE_URL=http://localhost:5000/api/v1
NEXT_PUBLIC_BACKEND_URL=http://localhost:5000/api/v1
```
2 changes: 1 addition & 1 deletion src/shared/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const enumValues = <T extends Record<string, unknown>>(enumEntity: T) =>

export const emptyArray = (length: number) => Array(length).fill(1);

export const getApiBaseUrl = () => process.env.NEXT_PUBLIC_BASE_URL;
export const getApiBaseUrl = () => process.env.NEXT_PUBLIC_BACKEND_URL;

const isValidToken = (token: string) => {
const tokenRegex = /^[a-zA-Z0-9-_]+?\.[a-zA-Z0-9-_]+?\.([a-zA-Z0-9-_]+)?$/;
Expand Down

0 comments on commit 3d0062a

Please sign in to comment.