how do you "serve" it? This is my loader function: ``` export const loader: LoaderFunction = async

how do you "serve" it? This is my loader function:

export const loader: LoaderFunction = async ({ context }) => {
  try {
    const { env } = context.cloudflare;
    const { objects } = await env.BUCKET.list();

    return { objects };
  } catch (e) {
    console.log(e);
    return new Response("Error", { status: 500 });
  }
};


This is to get the objects. Do you have any resources on serving the images?
Was this page helpful?