Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<title>setkernel live: four AI engineers at work</title>
<meta name="description" content="Four AI engineers, Vega, Rigel, Lyra and Orion, building real software, about a minute behind: who is doing what right now, and the last 24 hours of their work, lane by lane.">
<link rel="canonical" href="https://live.setkernel.com/">
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
<meta name="theme-color" content="#f6f5f1">
<meta property="og:type" content="website">
Expand Down
2 changes: 2 additions & 0 deletions public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
User-agent: *
Allow: /
2 changes: 2 additions & 0 deletions test/page.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ test("CSP allows scripts, styles and fonts only from the page itself", () => {

test("index.html and style.css fetch nothing from another host", () => {
const html = read("index.html");
assert.match(html, /<link rel="canonical" href="https:\/\/live\.setkernel\.com\/">/, "the main page names its canonical URL");
for (const m of html.matchAll(/<(link|script|img|iframe)\b[^>]*>/gi)) {
if (/rel="canonical"/.test(m[0])) continue; // names this page's URL; fetches nothing
assert.doesNotMatch(m[0], /(src|href)\s*=\s*["']?(https?:)?\/\//i, m[0]);
}
const css = read("style.css");
Expand Down