🍬 Removed hardcoded reference to import-service

TODO: Remove the repetitive use of thumbnail generating logic
This commit is contained in:
2021-10-21 12:03:58 -07:00
parent 419962c756
commit 116cbf2a62
8 changed files with 28 additions and 13 deletions

View File

@@ -6,6 +6,7 @@ import {
} from "../shared/utils/formatting.utils";
import { isUndefined, isEmpty, isNil } from "lodash";
import { Link } from "react-router-dom";
import { IMPORT_SERVICE_HOST } from "../constants/endpoints";
import ellipsize from "ellipsize";
interface IProps {
@@ -26,7 +27,7 @@ class Card extends React.Component<IProps, IState> {
metadata: IExtractedComicBookCoverFile,
): JSX.Element => {
const encodedFilePath = encodeURI(
"http://localhost:3000" + removeLeadingPeriod(metadata.path),
`${IMPORT_SERVICE_HOST}` + removeLeadingPeriod(metadata.path),
);
const filePath = escapePoundSymbol(encodedFilePath);
return (