We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e84530a commit 84793caCopy full SHA for 84793ca
1 file changed
src/services/utils.ts
@@ -3,8 +3,6 @@ import { isValidImage } from "./imageUtils";
3
4
export const API_BASE = "/api";
5
6
-export const NOW_URL = process.env.NOW_URL;
7
-
8
export const setImagesDirectoryForProject = (imagesDir: string) => {
9
return function getImageGivenDir(fileName: string) {
10
const isValid = isValidImage(fileName);
@@ -16,7 +14,7 @@ export const setImagesDirectoryForProject = (imagesDir: string) => {
16
14
17
15
export const setApiBaseForProject = (apiDir: string) => {
18
return function getApiEndpointGivenDir(endpoint: string) {
19
- return `${NOW_URL}${apiDir}${endpoint}`;
+ return `${process.env.NOW_URL}${apiDir}${endpoint}`;
20
};
21
22
0 commit comments