taxe_pe_inteles

Taxe pe înțeles

Free tax calculators for Romanian business owners, 2026 rules. The UI is in Romanian.

Code:

npm run dev     # http://localhost:3000
npm test
npm run typecheck
npm run lint
npm run build

npm run build writes the whole site as static files to out/. GitHub Actions (.github/workflows/ci.yml) runs the tests, type check, lint, npm audit and the build on every push and pull request, and publishes out/ to GitHub Pages on every push to main.

Setup

Copy .env.example to .env.local for local work. For the live site the same values are GitHub repository variables (Settings → Secrets and variables → Actions → Variables), read by the build in ci.yml. None of them are secrets: they all end up in the public pages.

Hosting: GitHub Pages

  1. In the repo, Settings → Pages → Source: GitHub Actions.
  2. Pages from a private repo needs a paid GitHub plan (Pro or above). On the free plan, make the repo public.
  3. Custom domain: Settings → Pages → Custom domain taxepeinteles.ro, then add the DNS records GitHub lists (A/AAAA records for the apex domain, CNAME for www). Verify the domain under your GitHub account settings → Pages, then tick Enforce HTTPS.
  4. GitHub Pages can’t send response headers, so the Content Security Policy is a <meta> tag (lib/csp.ts) and there is no clickjacking header. Putting Cloudflare in front would allow real headers later.
  5. GitHub’s terms don’t allow Pages for sites mainly aimed at commercial transactions. Move to another host before adding ads or paid features.

Cloudflare Web Analytics (free): in the Cloudflare dashboard, open Web Analytics → Add a site, enter taxepeinteles.ro, and choose the JavaScript snippet (you don’t need to move DNS to Cloudflare). Copy the token value from the snippet into NEXT_PUBLIC_CF_ANALYTICS_TOKEN. The site adds the script itself.

Google Search Console: add the domain, put the HTML-tag token in NEXT_PUBLIC_GOOGLE_SITE_VERIFICATION, submit /sitemap.xml.

Before launch

Background for each item: docs/AUDIT-2026-11-20.md.

Decide

Accounts

Set as GitHub repository variables

Accountant review

Release

Every year

Tip: after installing packages, restart the dev server and delete .next if styles look stale.