Curvea

Getting Started

Development Server

Start the project development server with:

npm run dev

The generated project script invokes curvea dev from the local @curvea/cli dependency.

Server behavior

The development server listens on port 3000 and watches:

src/
public/
curvea.config.json

Changes trigger live reload in connected browser clients.

Pages are rendered on request in development, so template, data, content, asset, and config changes are reflected after reload.

Base path

The development server respects site.basePath.

With:

{
  "site": {
    "basePath": "/demo/"
  }
}

Curvea serves the site from:

http://localhost:3000/demo/

A request to / redirects to the configured non-root base path.

Draft content

Markdown files marked draft: true are included in development and excluded from production builds.

Tailwind

When Tailwind is installed, the dev server starts the Tailwind watcher used by the project. Without Tailwind, normal CSS assets continue to work.

Direct CLI usage

If the CLI is installed globally, curvea dev is equivalent. Project scripts are preferred for reproducibility.