• 🤖 feat: migrate static S3 storage to Cloudflare R2 and add multi-locale SSG support (#70)

    deytenit released this 2026-10-30 00:05:44 +03:00

    Summary

    • Cloudflare R2 Migration:

    • Migrated static.ermnvldmr.com asset storage to Cloudflare R2 bucket
      com-ermnvldmr-static (location WEUR).

    • Added support for COM_ERMNVLDMR_STATIC_PUBLIC_URL fallback in
      @ermnvldmr/cli to properly format public asset URLs for non-dotted
      bucket names.

    • Relocated public CA cert to
      /dev/ssl/certs/ErmnvldmrDevelopmentRootCA.pem and updated
      REMOTE_ROOT_CA_URL references in @ermnvldmr/rsbuild-config and
      ensure-dev-certs.mjs.

    • Configured R2 CORS policies using wildcards
      (https://*.ermnvldmr.com, https://ermnvldmr.com,
      https://localhost.ermnvldmr.com*, http://localhost*,
      https://direct.yandex.ru, https://*.direct.yandex.ru,
      https://localhost.yandex.ru*).

      • Enforced minimum TLS 1.2 on zone ermnvldmr.com.
    • Updated encrypted .env.dev and GitHub secrets in both
      deytenit/ermnvldmr.com and deytenit/apex.ermnvldmr.com.

    • Multi-locale SSG Support:

    • Added NormalModuleReplacementPlugin to SSR runner in
      @ermnvldmr/ssg for automatic .en.mdx -> .${locale}.mdx
      substitution during Russian builds.

    • Added page metadata extraction (getPageOptions) in @ermnvldmr/ssg
      for pre-rendered <title> and <meta name="description"> tags.

    • Added unit test suite for createPage and updated services/www
      build scripts (build:all, build:en, build:ru, dev:en, dev:ru).

    Downloads