fix(printer): fix issue with printer service, locating the right URL of the server

This commit is contained in:
Amruth Pillai
2022-03-09 18:55:17 +01:00
parent 4447b58b8f
commit 6255849822
15 changed files with 62 additions and 27 deletions

View File

@ -60,7 +60,7 @@ const Preview: NextPage<Props> = ({ shortId }) => {
try {
const url = await mutateAsync({ username: resume.user.username, slug: resume.slug });
download(url);
download(`/api${url}`);
} catch {
toast.error('Something went wrong, please try again later.');
}