Skip to content

Commit

Permalink
docs: add api and routes dir and prefix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
igorjacauna committed Apr 29, 2024
1 parent 9f15590 commit df64dab
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions docs/3.config/0.index.md
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,18 @@ This option is useful when your hosting provider does not give you an option reg

The prerenderer will attempt to render pages 3 times with a delay of 500ms. Use `retry` and `retryDelay` to change this behavior.

### `apiPrefix`

- Default : `/api`

Changes the api URL prefix

### `routesPrefix`

- Default : `/`

Changes the routes URL prefix

## Directories

### `rootDir`
Expand All @@ -408,6 +420,18 @@ Project source directory. Same as `rootDir` unless specified. Helpful to move co

List of directories to scan and auto-register files, such as API routes.

### `apiDir`

- Default : `api`

Defines a different directory for api handlers

### `routesDir`

- Default : `routes`

Defines a different directory for routes handlers

### `buildDir`

- Default: `.nitro`
Expand Down

0 comments on commit df64dab

Please sign in to comment.