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
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ jobs:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
- name: Smoke check production changelog
run: curl --fail --silent --show-error --location --max-time 30 https://mail.sassmaker.com/changelog >/dev/null
run: curl --fail --silent --show-error --location --max-time 30 https://mail.significanthobbies.com/changelog >/dev/null
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
rel="stylesheet"
/>
<!-- fleet-jsonld:start (generated by apply-agent-surfaces; edit registry, not this) -->
<script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"Person","@id":"https://sarthakagrawal.dev/#person","name":"Sarthak Agrawal","jobTitle":"AI Infrastructure & Product Engineer","url":"https://sarthakagrawal.dev","image":"https://avatars.githubusercontent.com/u/43884471?v=4","sameAs":["https://sarthakagrawal.dev","https://www.linkedin.com/in/sarthakagrawal927","https://github.com/sarthakagrawal927","https://x.com/sarthakcodes","https://huggingface.co/sarthakagrawal927"],"knowsAbout":["AI infrastructure","Local-first software","Post-training language models","AI code review","Cloudflare Workers","TypeScript","Rust"],"affiliation":{"@type":"Organization","@id":"https://sassmaker.com/#app","name":"SaaS Maker","url":"https://sassmaker.com"}},{"@type":"SoftwareApplication","@id":"https://mail.significanthobbies.com/#app","name":"Significant Hobbies","alternateName":["SignificantHobbies","significanthobbies.com"],"url":"https://mail.significanthobbies.com","description":"Gmail workspace with local semantic search — private email tooling.","publisher":{"@id":"https://sarthakagrawal.dev/#person"},"sameAs":["https://github.com/Significant-Hobbies/email-manager"]}]}</script>
<script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"Person","@id":"https://sarthakagrawal.dev/#person","name":"Sarthak Agrawal","jobTitle":"AI Infrastructure & Product Engineer","url":"https://sarthakagrawal.dev","image":"https://avatars.githubusercontent.com/u/43884471?v=4","sameAs":["https://sarthakagrawal.dev","https://www.linkedin.com/in/sarthakagrawal927","https://github.com/sarthakagrawal927","https://x.com/sarthakcodes","https://huggingface.co/sarthakagrawal927"],"knowsAbout":["AI infrastructure","Local-first software","Post-training language models","AI code review","Cloudflare Workers","TypeScript","Rust"],"affiliation":{"@type":"Organization","@id":"https://sassmaker.com/#app","name":"SaaS Maker","url":"https://sassmaker.com"}},{"@type":"WebSite","@id":"https://mail.significanthobbies.com/#app","name":"Email Manager","url":"https://mail.significanthobbies.com","description":"Gmail workspace with local semantic search — private email tooling.","publisher":{"@id":"https://sarthakagrawal.dev/#person"},"sameAs":["https://github.com/Significant-Hobbies/email-manager"]}]}</script>
<!-- fleet-jsonld:end -->
</head>
<body>
Expand Down
6 changes: 4 additions & 2 deletions landing-astro/src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ interface Props {
const { title, description } = Astro.props;

const SITE_URL = 'https://mail.significanthobbies.com';
const canonicalPath = Astro.url.pathname === '/index.html' ? '/' : Astro.url.pathname.replace(/\.html$/, '');
const canonicalUrl = new URL(canonicalPath, `${SITE_URL}/`).href;
// OG image lives on the Next.js Worker at /opengraph-image (file
// convention → dynamic JSX → PNG). Astro can't trivially reproduce
// that. The Worker still serves every non-`/` route so this URL
Expand Down Expand Up @@ -50,10 +52,10 @@ const structuredData = {
<meta name="theme-color" content="#fbf8ff" media="(prefers-color-scheme: light)" />
<meta name="theme-color" content="#1a1b22" media="(prefers-color-scheme: dark)" />

<link rel="canonical" href={SITE_URL} />
<link rel="canonical" href={canonicalUrl} />

<meta property="og:type" content="website" />
<meta property="og:url" content={SITE_URL} />
<meta property="og:url" content={canonicalUrl} />
<meta property="og:site_name" content="Kinetic" />
<meta property="og:title" content={title} />
<meta property="og:description" content={description} />
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"dev:api": "wrangler dev --port 8787",
"dev:spa": "vite",
"build:landing": "pnpm --filter ./landing-astro build",
"build": "vite build && pnpm build:landing && node scripts/overlay-landing.mjs",
"build": "vite build && pnpm build:landing && node scripts/overlay-landing.mjs && pnpm verify:indexing",
"preview": "vite preview",
"typecheck": "tsc --noEmit -p tsconfig.app.json && tsc --noEmit -p tsconfig.worker.json",
"lint": "biome lint .",
Expand All @@ -27,6 +27,7 @@
"format:check": "biome format .",
"check": "biome check .",
"check:docs": "node scripts/check-docs.mjs",
"verify:indexing": "node scripts/verify-public-indexing.mjs",
"foundry:evidence": "node scripts/foundry-evidence.mjs",
"docs:dev": "pnpm --filter ./apps/docs-blume dev",
"docs:build": "pnpm --filter ./apps/docs-blume build",
Expand Down Expand Up @@ -91,7 +92,7 @@
"ip-address@>=10.0.0 <11.0.0": "10.3.1",
"js-yaml@>=3.0.0 <4.0.0": "3.15.1",
"js-yaml@>=4.0.0 <5.0.0": "4.3.1",
"nanoid@>=3.0.0 <4.0.0": "3.3.17",
"nanoid@>=3.0.0 <4.0.0": "3.3.18",
"next@>=16.0.0 <17.0.0": "16.2.11",
"path-to-regexp@>=6.0.0 <7.0.0": "6.3.0",
"postcss@>=8.0.0 <9.0.0": "8.5.23",
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 40 additions & 0 deletions scripts/verify-public-indexing.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#!/usr/bin/env node

import { readFile } from 'node:fs/promises';
import { resolve } from 'node:path';

const ORIGIN = 'https://mail.significanthobbies.com';
const pages = [
{ file: 'index.html', url: `${ORIGIN}/` },
{ file: 'faq.html', url: `${ORIGIN}/faq` },
{ file: 'changelog.html', url: `${ORIGIN}/changelog` },
];

for (const page of pages) {
const html = await readFile(resolve('dist', page.file), 'utf8');
const canonical = html.match(/<link[^>]+rel=["']canonical["'][^>]+href=["']([^"']+)["']/i)?.[1];
const openGraphUrl = html.match(
/<meta[^>]+property=["']og:url["'][^>]+content=["']([^"']+)["']/i
)?.[1];
if (canonical !== page.url) {
throw new Error(
`${page.file}: expected canonical ${page.url}, found ${canonical || 'missing'}`
);
}
if (openGraphUrl !== page.url) {
throw new Error(
`${page.file}: expected og:url ${page.url}, found ${openGraphUrl || 'missing'}`
);
}
}

const sitemap = await readFile(resolve('public', 'sitemap.xml'), 'utf8');
const sitemapUrls = [...sitemap.matchAll(/<loc>([^<]+)<\/loc>/g)].map((match) => match[1]);
const expectedSitemapUrls = pages.map((page) => page.url);
if (JSON.stringify(sitemapUrls) !== JSON.stringify(expectedSitemapUrls)) {
throw new Error(
`Expected sitemap URLs ${expectedSitemapUrls.join(', ')}, found ${sitemapUrls.join(', ')}`
);
}

console.log(`Verified ${pages.length} public sitemap URLs and self-referencing canonicals.`);