diff --git a/.envrc b/.envrc index 95c98d8..a252a48 100644 --- a/.envrc +++ b/.envrc @@ -1,8 +1,17 @@ #!/usr/bin/env bash +if [[ $DEBUG != "" ]]; then + set -x +fi + if command -v devenv >> /dev/null; then - eval "$(devenv direnvrc)" - use devenv + eval "$(devenv direnvrc)" + use devenv else - echo "error: Install devenv first (https://devenv.sh) and then run 'direnv reload'" -fi \ No newline at end of file + echo "error: Install devenv first (https://devenv.sh) and then run 'direnv reload'" + return 1 +fi + +if [[ $DEBUG != "" ]]; then + set +x +fi diff --git a/.gitignore b/.gitignore index 087e02e..a738df2 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,6 @@ devenv.local.nix # pre-commit .pre-commit-config.yaml + +# Cloudflare Wrangler +.wrangler/ diff --git a/.mailmap b/.mailmap new file mode 100644 index 0000000..d26c864 --- /dev/null +++ b/.mailmap @@ -0,0 +1,3 @@ +Andrei Jiroh Halili +Andrei Jiroh Halili +Andrei Jiroh Halili diff --git a/markdown/_redirects b/markdown/_redirects index fcc0af8..d9ad678 100644 --- a/markdown/_redirects +++ b/markdown/_redirects @@ -9,7 +9,6 @@ # user manual /manual /user-manual -/manual/* /user-manual/:path # legal /privacy /legal/privacy @@ -25,3 +24,6 @@ /security.txt /.well-known/security.txt /ads.txt /.well-known/ads.txt /keybase.txt /.well-known/keybase.txt + +# dynamic routing +/manual/* /user-manual/:path \ No newline at end of file diff --git a/markdown/humans.txt b/markdown/humans.txt index 0c76d2e..b2dbfff 100644 --- a/markdown/humans.txt +++ b/markdown/humans.txt @@ -12,7 +12,7 @@ From: Marilao, Bulacan, PH /* SITE */ - Last update: 2025-02-11 + Last update: 2025-05-25 (might not be in sync with commit logs) Timezone: PHT (GMT+8) Version: Currently unversioned Language: English diff --git a/wrangler.jsonc b/wrangler.jsonc new file mode 100644 index 0000000..70931f2 --- /dev/null +++ b/wrangler.jsonc @@ -0,0 +1,23 @@ +{ + "$schema": "https://raw.githubusercontent.com/recaptimedev-labs/workers-config-schema/refs/heads/main/config-schema.json", + "name": "website", + "account_id": "cf0bd808c6a294fd8c4d8f6d2cdeca05", + "compatibility_date": "2025-06-01", + "assets": { + "directory": "./public", + "html_handling": "auto-trailing-slash", + "not_found_handling": "404-page", + "run_worker_first": false + }, + "build": { + "command": "pipenv run build" + }, + "workers_dev": true, + "preview_urls": true, + "routes": [ + { + "custom_domain": true, + "pattern": "andreijiroh.dev" + } + ] +}