-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Utilities for updating headers in _headers
and vercel.json
#36
Conversation
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #36 +/- ##
==========================================
- Coverage 97.45% 95.81% -1.65%
==========================================
Files 22 17 -5
Lines 1967 1362 -605
Branches 26 15 -11
==========================================
- Hits 1917 1305 -612
- Misses 50 57 +7
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
0dcc70b
to
b46445e
Compare
…p ci] ## @jackdbd/eleventy-plugin-ensure-env-vars [1.2.0-canary.1](https://github.com/jackdbd/undici/compare/@jackdbd/[email protected]...@jackdbd/[email protected]) (2024-04-23) ### Features * **eleventy-plugin-content-security-policy:** generate header rules in vercel.json ([90b4a5e](90b4a5e)) * **hosting-utils:** add package ([19d3456](19d3456))
## @jackdbd/eleventy-plugin-plausible [1.2.0-canary.1](https://github.com/jackdbd/undici/compare/@jackdbd/[email protected]...@jackdbd/[email protected]) (2024-04-23) ### Features * **eleventy-plugin-content-security-policy:** generate header rules in vercel.json ([90b4a5e](90b4a5e)) * **hosting-utils:** add package ([19d3456](19d3456))
## @jackdbd/eleventy-plugin-telegram [2.2.0-canary.1](https://github.com/jackdbd/undici/compare/@jackdbd/[email protected]...@jackdbd/[email protected]) (2024-04-23) ### Features * **eleventy-plugin-content-security-policy:** generate header rules in vercel.json ([90b4a5e](90b4a5e)) * **hosting-utils:** add package ([19d3456](19d3456))
… ci] ## @jackdbd/eleventy-plugin-text-to-speech [3.2.0-canary.1](https://github.com/jackdbd/undici/compare/@jackdbd/[email protected]...@jackdbd/[email protected]) (2024-04-23) ### Features * **eleventy-plugin-content-security-policy:** generate header rules in vercel.json ([90b4a5e](90b4a5e)) * **hosting-utils:** add package ([19d3456](19d3456))
vercel.json
for various 11ty plugin_headers
and vercel.json
_headers
and vercel.json
_headers
and vercel.json
_headers
and vercel.json
_headers
and vercel.json
## @jackdbd/text-to-audio-asset [1.2.0-canary.1](https://github.com/jackdbd/undici/compare/@jackdbd/[email protected]...@jackdbd/[email protected]) (2024-04-23) ### Features * **eleventy-plugin-content-security-policy:** generate header rules in vercel.json ([90b4a5e](90b4a5e))
…y.1 [skip ci] ## @jackdbd/eleventy-plugin-content-security-policy [2.2.0-canary.1](https://github.com/jackdbd/undici/compare/@jackdbd/[email protected]...@jackdbd/[email protected]) (2024-04-23) ### Features * **eleventy-plugin-content-security-policy:** add tests ([c6df47f](c6df47f)) * **eleventy-plugin-content-security-policy:** generate header rules in vercel.json ([90b4a5e](90b4a5e)) * **hosting-utils:** add package ([19d3456](19d3456)) ### Dependencies * **@jackdbd/hosting-utils:** upgraded to 1.0.0-canary.1
…skip ci] ## @jackdbd/eleventy-plugin-permissions-policy [1.2.0-canary.1](https://github.com/jackdbd/undici/compare/@jackdbd/[email protected]...@jackdbd/[email protected]) (2024-04-23) ### Features * **eleventy-plugin-content-security-policy:** generate header rules in vercel.json ([90b4a5e](90b4a5e)) * **hosting-utils:** add package ([19d3456](19d3456)) ### Dependencies * **@jackdbd/hosting-utils:** upgraded to 1.0.0-canary.1
_headers
and vercel.json
_headers
and vercel.json
🎉 This PR is included in version 1.2.0 🎉 The release is available on Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 1.2.0 🎉 The release is available on Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 2.2.0 🎉 The release is available on Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 3.2.0 🎉 The release is available on Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 1.0.0 🎉 The release is available on Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 1.2.0 🎉 The release is available on Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 2.2.0 🎉 The release is available on Your semantic-release bot 📦🚀 |
This PR introduces a new package
hosting-utils
. This package contains functions that can parse_headers
files and add/update headers to it. It also contains functions to add/update headers inserve.json
andvercel.json
._headers
. This file is used to attach/detach custom HTTP response headers for projects hosted on Cloudflare Pages.vercel.json
. This file is used to set custom HTTP response headers for projects hosted on Vercel.Since code in
hosting-utils
is not Eleventy-specific, I might move it to a standalone repo sooner or later.