Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 8f1bd36

Browse files
committed
Add port configuration for local config.
1 parent d12b8e5 commit 8f1bd36

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

docs/get-started/foundations/projects/local-development.mdx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,21 @@ Many of these features make it possible to build and testing modules of your app
6767
All features provide real-time updates, ensuring you stay in sync with your application changes.
6868

6969
To access the Development Dashboard open the local URL in your browser. By default, the URL is set to [http://localhost:49152](http://localhost:49152).
70+
71+
## configuration
72+
73+
The local development experience can be configured using a `local.nitric.yaml` file.
74+
75+
A full example with example configuration is shown below:
76+
77+
```yaml
78+
apis:
79+
# 👀 Configure the "main" API to run on port 6001
80+
main:
81+
port: 6001
82+
83+
websockets:
84+
# 👀 Configure the "ws" WebSocket to run on port 6002
85+
ws:
86+
port: 6002
87+
```

0 commit comments

Comments
 (0)