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 Oct 20, 2023
1 parent c06fa6f commit 2464169
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions docs/content/3.config.md
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,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 @@ -392,6 +404,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 2464169

Please sign in to comment.