Skip to content

armgit / kokon

Public Imported from GitHub
0

Edit photos by describing the change, on your own GPU. A free, open-source alternative to Nano Banana and ChatGPT image editing: photos stay on your computer, no daily limit. One installer for Windows, Mac and Linux sets up the best open model (Qwen-Image 2.1). MCP server for AI agents.

Cloudflare config to publish site/, and a 404 page

Gabriele Lozuponebe8ecc97a090
diff --git a/site/404.html b/site/404.html
new file mode 100644
index 0000000..6e013c7
--- /dev/null
+++ b/site/404.html
@@ -0,0 +1,22 @@
+<!doctype html>
+<html lang="en">
+<head>
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width, initial-scale=1">
+<title>Page not found · Kokon</title>
+<meta name="robots" content="noindex">
+<link rel="icon" href="/assets/favicon.svg" type="image/svg+xml">
+<link href="https://fonts.googleapis.com/css2?family=Inter:opsz,[email protected],400..700&display=swap" rel="stylesheet">
+<link rel="stylesheet" href="/assets/style.css">
+</head>
+<body>
+<main class="final" style="min-height:100vh;display:grid;place-items:center;padding:40px 0">
+ <div class="wrap">
+ <p class="kicker">404</p>
+ <h2 style="margin:0 auto">This page doesn't exist.</h2>
+ <p class="sec-lede" style="margin-left:auto;margin-right:auto">But the app does.</p>
+ <div class="ctas"><a class="btn primary" href="/">Go to kokon.app</a></div>
+ </div>
+</main>
+</body>
+</html>
diff --git a/wrangler.jsonc b/wrangler.jsonc
new file mode 100644
index 0000000..d783b99
--- /dev/null
+++ b/wrangler.jsonc
@@ -0,0 +1,10 @@
+// Cloudflare Workers static site: publishes site/ to https://kokon.app (no build step).
+{
+ "name": "kokon",
+ "compatibility_date": "2026-10-01",
+ "assets": {
+ "directory": "./site",
+ "html_handling": "auto-trailing-slash",
+ "not_found_handling": "404-page"
+ }
+}