fix: use correct env variable in image resizing

This commit is contained in:
max_richter 2023-07-26 15:51:59 +02:00
parent 764b434e0a
commit 1a6efd945f

View File

@ -98,7 +98,7 @@ export const handler = async (
_req: Request,
_ctx: HandlerContext,
): Promise<Response> => {
const imageUrl = "http://192.168.178.56:3007/Recipes/images/" +
const imageUrl = Deno.env.get("SILVERBULLET_SERVER") + "/Recipes/images/" +
_ctx.params.image;
const url = new URL(_req.url);