# A B2B company site in 4 languages

> For a B2B trading company that needed to show overseas buyers what it trades and how it works, I built an English, Korean, Uzbek and Russian site as 18 static pages on an adapted open-source Astro template, deployed automatically to Cloudflare Workers.

- Published: 2026-11-11
- Client: NURI Trading (international B2B sourcing and trading company)
- Role: Design, build, deployment, operations
- Period: 2026
- Stack: Astro, Tailwind CSS, Cloudflare Workers, GitHub Actions
- Outcome: 4 languages × 4 page types + root + 404, delivered and running as 18 static pages
- Tags: astro, i18n, cloudflare, static-site, security

**Why**: Buyers were split across four languages, so the client needed a site with a URL and search visibility per language rather than one translated screen, and wanted to run it cheaply without a server, database or CMS.

**Principle**: If visitors have one job to do, keep operations to a minimum too, and keep settings that may change in the repository so they can be reviewed and rolled back.

## Metrics

| Metrics | Value | Scope | Source |
| --- | --- | --- | --- |
| Supported languages | 4 (English, Korean, Uzbek, Russian) | Reproducible measurement | Development log (private), per-language paths /en/ /ko/ /uz/ /ru/ |
| Static pages | 18 pages | Reproducible measurement | Development log (private), `npm run build` output "18 page(s) built" (2026-11-11) |
| Security headers | 5 | Reproducible measurement | Development log (private), header config file in the repository |
| i18n routing and navigation unit tests | 6 passing | Reproducible measurement | Development log (private), `npm test` (2026-11-11) |
| Feature branch PRs merged | #1~#8 | Reproducible measurement | Development log (private), repository PR history |

## Links

- Site: https://nuri-trading.com/ko/

## 1. Situation

The client needed an official site to show overseas B2B buyers what it trades (technical products, machinery, equipment, industrial parts) and how it does business. The buyers read English, Korean, Uzbek and Russian. So this could not be a single page left to browser translation. Each language needed its own URL, and search engines had to recognize each language separately.

The client's requirements were simple: run it cheaply and fast, with no server, database or CMS. Visitors also had one job: understand what the company trades and send an inquiry by email. This is not a rebuild on public data but a site delivered to a real client and still in operation, so the repository is private.

## 2. Scoping

I cut the scope around the fact that visitors do one thing.

- No contact form backend. Inquiries come in through a mailto link. A form brings spam handling and storage with it, and a mail link was enough for what visitors needed.
- No building from scratch. I took an open-source Astro template (AstroWind) with proven layout and SEO setup and stripped out its demo SaaS pages.
- A full CSP that also restricts scripts was left out of this scope. Inline scripts need nonce work, so that became a separate change. HSTS is a dashboard setting, so it was also out of scope.
- During design I set the rule "write only confirmed facts." I did not invent contact details, addresses or business information the client had not provided.

## 3. Build

| Category     | What | Reasoning |
| ------------ | ---- | --------- |
| Reused       | Astro static output + Tailwind, layout and SEO setup from the open-source template | Shipping only HTML with no server or database keeps it fast for visitors and nearly free to run |
| Modified     | Removed demo content and reskinned with the client's logo, color tokens, and light/dark themes with a toggle. Per-language title/description, default Open Graph tags, absolute-URL hreflang, and fixes for missing h1 |  |
| Built myself | Per-language paths (`/en/ /ko/ /uz/ /ru/`) and a language switcher, plus a dropdown that opens upward in the mobile menu. A phone number rendered as an image to make it harder for crawlers to scrape. Security settings kept in the repository | Reduces contact-info harvesting and keeps security values in the same state on every deploy |

The site is 4 languages × (home, contact, terms of service, privacy policy), plus the root and a 404, for 18 pages. The home page is a single scrolling screen: introduction → products → process → trust → contact.

It is deployed as a static-assets-only Cloudflare Worker. Only the build output is uploaded and there is no runtime script, so the only thing to manage is one config file. Merging on GitHub deploys automatically, and on every PR and push to main, CI runs astro check, eslint and prettier, then the build.

Security settings live in the repository, not the dashboard. When deployment is driven by repository config, a value changed only in the dashboard can be reverted by the next deploy. In the repository, changes get reviewed and can be rolled back. There are three parts: disabling `workers.dev` and preview URLs, which bypass the WAF; 5 security headers; and deleting the unused CMS admin pages. The headers include both `X-Frame-Options` and CSP `frame-ancestors` to cover older and newer browsers. A CSP with only `frame-ancestors` does not break inline scripts. I deleted the CMS folder instead of blocking its path. That removes both the exposed screen and the supply-chain risk of loading an unpinned version from an external CDN.

## 4. What broke

**Turning off `workers.dev` could have taken the whole site down.** The symptom was a risk that had not happened yet. Hypothesis: if the custom domain route was misconfigured when `workers.dev` was turned off, visitors would have no way in. Verification: I wrote this scenario into the risk table of the design doc and checked that the custom domain returned `200` before deploying. Fix: I disabled it only after that check, with rollback defined as a single PR revert.

**Turning off preview URLs removed per-PR previews.** That was the cost of disabling preview URLs for security: reviewers lose a way to see changes before deploy. The design specifies checking locally with `npm run preview` as the replacement. I chose to give up a little convenience to close a bypass route.

## 5. Results

| Metric | Value | Scope | Source |
| ---- | --- | ------------- | ---- |
| Supported languages | 4 (English, Korean, Uzbek, Russian) | Repository and build | Development log (private) |
| Static pages | 18 pages | Repository and build | Development log (private), `npm run build` (2026-11-11) |
| Security headers | 5 | Repository and build | Development log (private) |
| i18n routing and navigation unit tests | 6 passing | Repository and build | Development log (private), `npm test` (2026-11-11) |
| Feature branch PRs merged | #1~#8 | Repository and build | Development log (private) |

This site was delivered to the client and is currently in operation (confirmed by the author, 2026-11). Every change after the first deploy was merged into main through a feature branch and PR. The security hardening was documented in order: proposal → design → requirements and scenarios → implementation → archive.

## 6. If I did it again

- I never measured Lighthouse or Core Web Vitals on the live site. I would first confirm with numbers the assumption that a static site is fast.
- The Uzbek and Russian translations have no record of native-speaker review. I would put a review step in the schedule before delivery.
- Full CSP is not applied yet. Adding nonces to inline scripts is the next change.
- Inquiries come only through a mail link. That was intended, but if inquiry volume grows I would revisit a form and spam handling.
