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
- 38 days from first prototype to live site
- 20 pages of technical content, grouped by topic
- 99 Lighthouse desktop performance, with 100 in accessibility, best practices and SEO
- 39 component and page tests
A Nice-looking Site That Brought No One in
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 challengeRebuild the site from scratch, give it content that answers real searches and change hosting without losing Google rankings or taking down company email.
The Project’s Choices
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
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.
-
01 Home. The first screen on a phone, with both action buttons within reach.
-
02 Solutions. The guide hub on a phone.
-
03 Pillar guide. Long-form text made to read on a phone, with the breadcrumb on top.
-
04 O&M. The service page on a phone.
-
05 Contact. The quote form: large fields and validation before sending.
Main Pages and the Solutions Section
The home page, the technical guide hub, the pillar guide and the service and coverage pages.
* Screenshots of the production site at www.ayaenergia.com.br.
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
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
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" + nginxNext 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.tsA 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: falseA 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-LDOrganization across the site and Article on every Solutions page, so Google understands authorship and topic.
-
Indexing per environment
NEXT_PUBLIC_ALLOW_INDEXINGSitemap 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 WebPThe 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-hostedInter served by the site itself and preloaded, so the top headline does not change size when the font arrives.
-
Cache and compression
Cache-Control immutablegzip 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/100Lighthouse run in production the week of the launch.
Tests and Delivery
-
Strict TypeScript
strict + tsc --noEmitstrict on, and type checking runs before every release.
-
Components and pages tested
39 testsVitest 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 testThe pipeline only publishes if types, tests and build pass, and ends with a smoke test against the real address.
-
Lean image
Docker multi-stageMulti-stage build: Node only to compile, and the final image is nginx with the static files.
Security and the Form
-
A trap for bots
honeypotThe 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_headernosniff, protection against the site being framed by another page, and a referrer policy on nginx.
AI in Development
-
Calibrated agents
AGENTS.mdA 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 skillsTechnical 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
reviewEvery piece of text and every diff generated with AI went through me before going live.
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.
Have a Similar Project in Mind?
I like problems with real people on the other side. Tell me what you need.