Skip to content

Migrate to Vite + React SSR with SEO support#1

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/add-vite-react-landing-page
Draft

Migrate to Vite + React SSR with SEO support#1
Copilot wants to merge 2 commits intomainfrom
copilot/add-vite-react-landing-page

Conversation

Copy link

Copilot AI commented Feb 9, 2026

Adds Vite build system, React 18, and SSR capabilities for building SEO-optimized landing pages.

Changes

valzu-core v2.0.0

  • Added Head component for declarative meta tag management (title, OG, Twitter Cards, canonical, robots)
  • Added HeadProvider, createHeadContext, renderHeadToString for SSR head collection
  • React 18 as peer dependency
  • Legacy element API preserved but deprecated

create-valzu-app template

  • Replaced esbuild with Vite (HMR, optimized builds)
  • Express server with SSR middleware
  • React Router for client-side navigation
  • Split entry points: entry-client.tsx (hydration), entry-server.tsx (render)

Usage

import { Head } from "valzu-core";

export default function Landing() {
  return (
    <>
      <Head
        title="My Product"
        description="Product description"
        ogImage="https://example.com/og.jpg"
        twitterCard="summary_large_image"
      />
      <div>Content</div>
    </>
  );
}

Server-rendered HTML includes all meta tags:

<head>
  <title>My Product</title>
  <meta name="description" content="Product description">
  <meta property="og:image" content="https://example.com/og.jpg">
  ...
</head>

Screenshots

Home About
Home About

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: valtterisa <24230618+valtterisa@users.noreply.github.com>
Copilot AI changed the title [WIP] Add Vite and React for landing page development Migrate to Vite + React SSR with SEO support Feb 9, 2026
Copilot AI requested a review from valtterisa February 9, 2026 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants