Skip to content
Open
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
11 changes: 9 additions & 2 deletions site/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,15 @@ project from the `jeremymcs/patchdeck` repository and set:

### One thing to change after the domain is set

The canonical URL currently points at `https://patchdeck.vercel.app/`. Once the
real domain is attached, update it in three places:
The canonical URL points at `https://patchdeck-eta.vercel.app/`, the alias Vercel
assigned this project.

> Do not "correct" this to `patchdeck.vercel.app`. That hostname is taken by an
> unrelated project ("PatchDeck — Visual Network Designer") and is not ours;
> pointing the canonical, OG image or sitemap at it would hand our SEO and link
> previews to a stranger's site.

Once a real domain is attached, update it in three places:

- `index.html` — `<link rel="canonical">`, the `og:url` / `og:image` /
`twitter:image` meta tags, and the `url` field in the JSON-LD block
Expand Down
20 changes: 18 additions & 2 deletions site/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,26 @@ fs.rmSync(DIST, { recursive: true, force: true });
copyStatic();

if (watch) {
// Build the stylesheet once up front. dist/ was just cleared, and the watcher
// below may take a moment (or fail) to produce it — without this the page
// serves with a 404 on styles.css.
const initial = spawnSync(tailwindBin, cssArgs, { stdio: "inherit" });
if (initial.status !== 0) process.exit(initial.status ?? 1);

fs.watch(path.join(ROOT, "index.html"), () => copyStatic());
fs.watch(PUBLIC, { recursive: true }, () => copyStatic());
spawn(tailwindBin, [...cssArgs, "--watch"], { stdio: "inherit" });
console.log("watching — dist/ is live");

// stdin must be an open pipe we never write to or close. The Tailwind CLI
// watcher shuts down the moment stdin reaches EOF, which is what both
// "inherit" (when detached) and "ignore" (/dev/null) hand it immediately.
const watcher = spawn(tailwindBin, [...cssArgs, "--watch"], {
stdio: ["pipe", "inherit", "inherit"],
});
watcher.on("exit", (code) => {
console.error(`tailwind --watch exited (${code}); css is no longer rebuilding`);
});

console.log("watching — dist/ is live on the files it has built");
} else {
const result = spawnSync(tailwindBin, [...cssArgs, "--minify"], { stdio: "inherit" });
if (result.status !== 0) process.exit(result.status ?? 1);
Expand Down
10 changes: 5 additions & 5 deletions site/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>PatchDeck — Keep your pull requests moving</title>
<meta name="description" content="PatchDeck is a local-first workbench for GitHub pull requests and issues. It watches your repos, triages review feedback and failing checks, then runs your local coding agent in an isolated worktree to fix what needs fixing." />
<link rel="canonical" href="https://patchdeck.vercel.app/" />
<link rel="canonical" href="https://patchdeck-eta.vercel.app/" />
<meta name="theme-color" content="#08090C" />

<meta property="og:type" content="website" />
<meta property="og:site_name" content="PatchDeck" />
<meta property="og:title" content="PatchDeck — Keep your pull requests moving" />
<meta property="og:description" content="A local-first workbench that watches your GitHub repos, triages review feedback and failing checks, then dispatches your local coding agent to fix them." />
<meta property="og:url" content="https://patchdeck.vercel.app/" />
<meta property="og:image" content="https://patchdeck.vercel.app/assets/og.png" />
<meta property="og:url" content="https://patchdeck-eta.vercel.app/" />
<meta property="og:image" content="https://patchdeck-eta.vercel.app/assets/og.png" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:image:alt" content="The PatchDeck dashboard showing watched repositories, open pull requests, and live agent activity." />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="PatchDeck — Keep your pull requests moving" />
<meta name="twitter:description" content="A local-first workbench that watches your GitHub repos, triages review feedback and failing checks, then dispatches your local coding agent to fix them." />
<meta name="twitter:image" content="https://patchdeck.vercel.app/assets/og.png" />
<meta name="twitter:image" content="https://patchdeck-eta.vercel.app/assets/og.png" />

<link rel="icon" href="/favicon.svg" type="image/svg+xml" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
Expand All @@ -41,7 +41,7 @@
"operatingSystem": "macOS, Linux, Windows",
"softwareVersion": "1.6.0",
"description": "A local-first workbench for keeping GitHub pull requests and issues moving. Watches repositories, syncs review feedback and failed checks into one dashboard, then runs a local coding agent in an isolated worktree.",
"url": "https://patchdeck.vercel.app/",
"url": "https://patchdeck-eta.vercel.app/",
"codeRepository": "https://github.com/jeremymcs/patchdeck",
"license": "https://opensource.org/licenses/MIT",
"offers": { "@type": "Offer", "price": "0", "priceCurrency": "USD" }
Expand Down
2 changes: 1 addition & 1 deletion site/public/robots.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
User-agent: *
Allow: /

Sitemap: https://patchdeck.vercel.app/sitemap.xml
Sitemap: https://patchdeck-eta.vercel.app/sitemap.xml
2 changes: 1 addition & 1 deletion site/public/sitemap.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://patchdeck.vercel.app/</loc>
<loc>https://patchdeck-eta.vercel.app/</loc>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
Expand Down
4 changes: 4 additions & 0 deletions site/vercel.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"$schema": "https://openapi.vercel.sh/vercel.json",
"framework": null,
"buildCommand": "npm run build",
"outputDirectory": "dist",
"installCommand": "npm install",
"cleanUrls": true,
"trailingSlash": false,
"headers": [
Expand Down
Loading