Skip to content

Commit 84793ca

Browse files
committed
move away NOW const
1 parent e84530a commit 84793ca

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/services/utils.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ import { isValidImage } from "./imageUtils";
33

44
export const API_BASE = "/api";
55

6-
export const NOW_URL = process.env.NOW_URL;
7-
86
export const setImagesDirectoryForProject = (imagesDir: string) => {
97
return function getImageGivenDir(fileName: string) {
108
const isValid = isValidImage(fileName);
@@ -16,7 +14,7 @@ export const setImagesDirectoryForProject = (imagesDir: string) => {
1614

1715
export const setApiBaseForProject = (apiDir: string) => {
1816
return function getApiEndpointGivenDir(endpoint: string) {
19-
return `${NOW_URL}${apiDir}${endpoint}`;
17+
return `${process.env.NOW_URL}${apiDir}${endpoint}`;
2018
};
2119
};
2220

0 commit comments

Comments
 (0)