1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-20 21:01:18 -04:00

pass mdx images through next/image for full optimization benefits

This commit is contained in:
2022-01-09 22:53:10 -05:00
parent 32d1683e51
commit 6436a34c59
34 changed files with 256 additions and 180 deletions

View File

@@ -11,9 +11,11 @@ tags:
image: "/static/images/notes/security-headers-cloudflare-workers/security-headers.png"
---
import Image from "./components/embeds/Image";
{/* prettier-ignore */}
<figure>
<img
<Image
src="/static/images/notes/security-headers-cloudflare-workers/security-headers.png"
width="700"
height="275"
@@ -28,7 +30,7 @@ In 2019, it's becoming more and more important to harden websites via HTTP respo
[Cloudflare Workers](https://www.cloudflare.com/products/cloudflare-workers/) are a great feature of [Cloudflare](https://www.cloudflare.com/) that allows you to modify responses on-the-fly between your origin server and the user, similar to [AWS Lambda](https://aws.amazon.com/lambda/) (but much simpler). We'll use a Worker to add the headers.
<img
<Image
className="center"
src="/static/images/notes/security-headers-cloudflare-workers/cf-workers.png"
width="650"