Skip to content

loke-dev/loke.dev

Repository files navigation

loke.dev

Development

Run the dev server:

pnpm run dev

Deployment

First, build your app for production:

pnpm run build

Then run the app in production mode:

pnpm start

Hosting

This website is configured to use Cloudflare workers. You are free to adapt it to any hosting solution.

Monitoring

/health is monitored by Better Stack, while Sentry collects application errors, logs, performance traces, cron check-ins, and custom scheduler metrics. Cloudflare Web Analytics is enabled in the Cloudflare dashboard.

For future read-only monitoring automation, create local API credentials in .env.monitoring (start from .env.monitoring.example) and run:

pnpm monitoring:status

The command reports only aggregate Sentry issue counts and Better Stack monitor and incident status; it does not print credentials or event payloads.

  • Cloudflare Web Analytics is enabled for loke.dev with automatic setup in the Cloudflare dashboard.

  • Better Stack checks https://loke.dev/health every three minutes and alerts on any response other than HTTP 200. The endpoint returns { "ok": true } and is never cached.

  • Sentry receives a JavaScript/Cloudflare project DSN as a Worker secret:

    pnpm wrangler secret put SENTRY_DSN

    Server exceptions, logs, and request traces (10% sample) are enabled automatically once the secret is set.

About

My personal website

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Contributors