Skip to content
Client · Company website · 2026

AYA Energia Website

AYA’s website left Wix and became a fast static site the company actually owns, with a section of technical guides for people searching Google for solar plant operations and maintenance.

Role
Design, development, SEO and launch
When
July and August 2026
Team
Freelancer, with AYA signing off each stage
Status
Live since August 2026
Visit the live site (opens in a new tab)
AYA Energia home page with an aerial photo of a solar plant and the headline about keeping the plant at peak output every day
AYA home page on a phone with the headline and quote and O&M buttons
Solar plant operations and maintenance guide on a phone, with breadcrumb and text
01. Context

A Nice-looking Site That Brought No One in

Search, a pillar guide with 19 linked guides, and a form: the portal sends via Brevo to two AYA inboxes and confirms receipt to the visitor.
From searching for solar plant advice to contacting AYA.

AYA runs operations and maintenance of solar plants. The old site lived on Wix: five pages, thin content for search and little room to grow. People searching Google for solar plant maintenance rarely found it.

The ask was a new site with the company’s identity and a base to win clients through search. The delicate part was the switch: the domain already had indexed pages and company email pointed at it, and none of that could break on launch day.

The challenge

Rebuild the site from scratch, give it content that answers real searches and change hosting without losing Google rankings or taking down company email.

02. Decisions

The Project’s Choices

  1. 01

    Prototype Before Framework

    The first version was plain HTML and CSS, clickable, so AYA could approve layout, tone and content. Only after approval did it become Next.js, with each prototype block turned into a component.

  2. 02

    Static and Light

    The site is built into static files served by nginx. The font is self-hosted, photos ship as WebP in several sizes and Tag Manager only loads after the page is done.

  3. 03

    Topic Guides, Not Pages in Series

    Instead of one page per service and state, which Google treats as thin content, the Solutions section has a pillar guide on operations and maintenance and 19 guides linked to it, each for a real question plant owners ask.

  4. 04

    A Switch That Keeps Search

    The five pages Wix had in Google were mapped. The two whose address changed got permanent redirects, and the bare domain now points to www. Email records were left untouched.

  5. 05

    A Form That Delivers

    Contact goes to AYA’s portal, which sends it through Brevo to two company inboxes and emails a confirmation to the sender. Only the site’s domain may submit, and a hidden field drops bots.

  6. 06

    Staging That Does Not Compete

    Before the switch, the test version lived on a subdomain marked as not indexable, so it would not compete in search with the site still online.

03. On mobile

On a Phone

The same site on a small screen: collapsed menu, headings that fit and a form with large fields. The top video has its own lighter version for phones.

  1. 01 Home. The first screen on a phone, with both action buttons within reach.

  2. 02 Solutions. The guide hub on a phone.

  3. 03 Pillar guide. Long-form text made to read on a phone, with the breadcrumb on top.

  4. 04 O&M. The service page on a phone.

  5. 05 Contact. The quote form: large fields and validation before sending.

04. On desktop

Main Pages and the Solutions Section

The home page, the technical guide hub, the pillar guide and the service and coverage pages.

Home. The first fold: the promise, two ways to get in touch and where AYA operates.
Solutions. The technical guide hub, grouped by topic. It is the entry point for search visitors.
Pillar guide. The pillar guide that links all the others. The side index leads to each topic.
O&M. The service page: what the operations and maintenance contract covers.
Portfolio. Where AYA operates, with regional teams in five states.

* Screenshots of the production site at www.ayaenergia.com.br.

05. Engineering

Under the Hood

A company site has to load fast, be found and cause no headaches. Most of the care went into publishing and the domain switch.

Stack

  • Next.js 16
  • React 19
  • TypeScript
  • CSS
  • nginx
  • Docker
  • GitHub Actions
  • Coolify
  • Google Tag Manager
  • Brevo
Five safeguards: typed content, a pipeline with 39 tests, noindex staging, static files on nginx, and redirects with a smoke test.
From typed content to migration, with checks before every release.

Safeguards

  • Pipeline deploys: type checks, tests and build before the image is built and published
  • Separate staging environment, with indexing blocked in the header and in robots.txt
  • Permanent redirects from old Wix URLs and from the bare domain
  • Security headers in nginx and an auto-renewing certificate
  • Form with in-browser validation, an anti-bot field and submissions accepted only from the site’s domain
  • Sitemap, robots.txt, canonical URL and company structured data on every page

Tests and Quality

  • Vitest
  • Testing Library
  • Lighthouse
  • 39 tests in Vitest with Testing Library: components, the site script’s behavior and rendering of every page
  • Type checks, tests and build as a required gate before each release
  • Lighthouse measured in production during launch week: 99 desktop performance and 100 in accessibility, best practices and SEO
06. Inside the code

What Holds Up a Fast Static Site

A company website looks simple, but what separates a site that shows up on Google from one that merely exists are the choices below. The repository belongs to AYA and is private; each practice points to where it lives.

Architecture

  • Static export

    output: "export" + nginx

    Next generates plain HTML, CSS and JS at build time and nginx serves the files. With no Node server in production, there is nothing to go down and nothing to break into.

  • Content as typed data

    lib/solucoes.ts

    A typed list describes the Solutions pages and feeds the hub, the menu, the sidebar and the sitemap at once. A new page goes in one place.

  • No broken links by design

    publicado: false

    A page not yet written is flagged as unpublished: it shows as "coming soon" with no link and stays out of the menu and the sitemap.

  • Component layer

    components/ui/

    Section, section header, card, grid, closing call to action: pages assemble ready-made pieces instead of repeating HTML.

Technical SEO

  • Pillar and clusters

    app/solucoes/ (20 pages)

    A complete O&M guide at the center and 19 long-tail pages grouped by topic, linking back to the pillar. An architecture chosen to avoid thin, repetitive pages.

  • Structured data

    JSON-LD

    Organization across the site and Article on every Solutions page, so Google understands authorship and topic.

  • Indexing per environment

    NEXT_PUBLIC_ALLOW_INDEXING

    Sitemap and robots generated at build time. Only production allows indexing; the test environment ships with noindex and does not compete with the official site in search.

Performance

  • Mobile weight

    21 of 28 images in WebP

    The top video has a light version just for phones, which cut about 3.8 MB from the page, and photos ship as WebP.

  • No font jump

    preload + self-hosted

    Inter served by the site itself and preloaded, so the top headline does not change size when the font arrives.

  • Cache and compression

    Cache-Control immutable

    gzip on nginx and a one-year cache for files with a hash in the name; HTML always fresh.

  • Measured, not estimated

    Lighthouse desktop 99/100/100/100

    Lighthouse run in production the week of the launch.

Tests and Delivery

  • Strict TypeScript

    strict + tsc --noEmit

    strict on, and type checking runs before every release.

  • Components and pages tested

    39 tests

    Vitest with Testing Library covers the components, the behavior of the site script and the rendering of every page.

  • Gate and proof on deploy

    GitHub Actions + smoke test

    The pipeline only publishes if types, tests and build pass, and ends with a smoke test against the real address.

  • Lean image

    Docker multi-stage

    Multi-stage build: Node only to compile, and the final image is nginx with the static files.

Security and the Form

  • A trap for bots

    honeypot

    The form has an invisible field; if it comes back filled in, it is a bot and the submission is silently dropped.

  • Protective headers

    nginx add_header

    nosniff, protection against the site being framed by another page, and a referrer policy on nginx.

AI in Development

  • Calibrated agents

    AGENTS.md

    A guide in the repository tells the agent what the project is, what must not be touched and how to verify.

  • SEO and content skills

    SEO skills

    Technical SEO and writing skills guided the switch from service-by-state pages to pillar and clusters, which is what Google rewards today.

  • Human review at the end

    review

    Every piece of text and every diff generated with AI went through me before going live.

07. Today

Where It Stands

The site has been live since August 27, 2026, on AYA’s own server, with all 20 content pages and the form working. Visits reach Google Analytics and the domain is in Search Console.

On phones, the top video got a lighter version that cut about 3.8 MB from the page. The mobile performance score still needs JavaScript work, left for a later stage.

Next step

Have a Similar Project in Mind?

I like problems with real people on the other side. Tell me what you need.