@caltho/site-kit 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/seo.js +6 -1
  2. package/package.json +1 -1
package/dist/seo.js CHANGED
@@ -111,7 +111,8 @@ export function headersFile(editors = []) {
111
111
  // Every page refuses to be framed (X-Frame-Options, which every browser honours), but the
112
112
  // preview: there, only the CalOS addresses the build was given (./next/preview.tsx), which is
113
113
  // why the refusal isn't also a frame-ancestors policy on every page, which the preview's couldn't
114
- // loosen. With no CalOS addresses, the preview refuses too.
114
+ // loosen. With no CalOS addresses, the preview refuses too. Both of its addresses: Cloudflare
115
+ // serves a page built as a folder at the one with the slash, and sends the other there.
115
116
  const preview = editors.length ? ` ! X-Frame-Options\n Content-Security-Policy: frame-ancestors ${editors.join(" ")}\n` : "";
116
117
  return `/*
117
118
  X-Content-Type-Options: nosniff
@@ -133,6 +134,10 @@ ${PREVIEW_PATH}
133
134
  ${preview} X-Robots-Tag: noindex
134
135
  Cache-Control: no-store
135
136
 
137
+ ${PREVIEW_PATH}/
138
+ ${preview} X-Robots-Tag: noindex
139
+ Cache-Control: no-store
140
+
136
141
  https://:project.pages.dev/*
137
142
  X-Robots-Tag: noindex
138
143
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caltho/site-kit",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "What every Caltho site is built with: the contract with CalOS (content, and how a site declares what is editable), images, search and security, and the checks",
5
5
  "license": "MIT",
6
6
  "type": "module",