CI updates for Leafcutter

This commit is contained in:
Darren Clarke 2023-03-31 09:04:24 +02:00
parent ae527fdcf3
commit 720a96af97
3 changed files with 5 additions and 5 deletions

View file

@ -1,7 +1,7 @@
import { FC, createContext, useContext, useReducer, useState } from "react";
import { colors, typography } from "styles/theme";
const basePath = process.env.GITLAB_CI ? "/leafcutter/leafcutter-web" : "";
const basePath = process.env.GITLAB_CI ? "/link/link-stack/apps/leafcutter" : "";
const imageURL = (image: any) =>
typeof image === "string" ? `${basePath}${image}` : `${basePath}${image.src}`;