kodeklaus .dk

A small static site with the full path left visible: source files, a Pages project, a production deploy, and DNS on Cloudflare.

Four plain pieces, wired together.

Diagram showing local static files deployed to Cloudflare Pages and connected to kodeklaus.dk.
01

public/

Static HTML, CSS, JavaScript, and assets.

02

npm run deploy

Wrangler uploads the static folder.

03

Cloudflare Pages

The `kodeklaus` project serves the files.

04

kodeklaus.dk

A proxied CNAME points the domain at Pages.

Nothing hidden behind a framework.

01

Write the static files

Edit `public/index.html`, `public/styles.css`, and `public/script.js`.

public/
02

Check the output

The check script confirms that the files Cloudflare serves are present.

npm run check
03

Preview like Pages

Wrangler serves the same `public/` folder locally before deploy.

npm run dev
04

Deploy production

Cloudflare receives the static folder and serves it from the Pages edge.

npm run deploy

The production setup is deliberately small.

These are the values needed to recreate this deployment from the repo. The DNS record points `kodeklaus.dk` at the Pages project.

Repository
fhestvang/kodeklaus
Production branch
main
Build command
npm run check
Build output directory
public
DNS record
CNAME kodeklaus.dk -> kodeklaus.pages.dev