Curvea

CLI

curvea dev

Starts the Curvea development server.

For a generated project, use:

npm run dev

The script invokes the local curvea dev binary.

Server

The development server uses port 3000 and watches:

src/
public/
curvea.config.json

It renders pages on request and adds live-reload behavior in development.

The server handles rendered routes, public files, source/build assets, JavaScript modules, CSS, and feature vendor assets needed by the project.

Base path

site.basePath is respected in development. A project configured with /demo/ is served from:

http://localhost:3000/demo/

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

Draft Markdown

Development includes Markdown entries with draft: true; production build excludes them.

Rendering errors

When page rendering fails, the development server returns a Curvea HTML error page with the error details.