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

Commit 57f9c07

Browse files
Apply suggestions from code review
Co-authored-by: David Moore <[email protected]>
1 parent 202a7c3 commit 57f9c07

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

docs/guides/nodejs/byo-database.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ updated_at: 2024-12-30
1414
Nitric currently has out of the box **preview** support for [PostgreSQL databases](/sql), however Nitric allows you to use whatever tooling and ORMs you prefer for directly interfacing with your database. If you want to use a database that isn't managed by Nitric, we have the following recommendations:
1515

1616
- For local development, set up a container that runs alongside your Nitric processes.
17-
- For a production environment, you can use any of the database services for your preferred cloud:
17+
- For a production environment, use any of the database services offered by your preferred cloud provider:
1818

1919
| | AWS | GCP | Azure |
2020
| ---------- | --------------------------------------------------------------------------- | ------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------- |

docs/guides/nodejs/fastify.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ You can go ahead and open this new project in your editor of choice. You should
5353
└── yarn.lock
5454
```
5555

56-
In this structure you'll notice the `servuces` folder. By default, this is where Nitric expects the entrypoint code for your application. However, that's just a convention, we can change that to anything else that suits our needs.
56+
In this structure you'll notice the `services` folder. By default, this is where Nitric expects the entrypoint code for your application. However, that's just a convention, we can change that to anything else that suits our needs.
5757
Now, let's add some Fastify code to get things started.
5858

59-
```javascript title:services/app.js
59+
```javascript title:services/api.js
6060
import Fastify from 'fastify'
6161
import { http } from '@nitric/sdk'
6262

@@ -94,9 +94,9 @@ Hello World!
9494

9595
With everything working so far, now is a good time to see how we can add new resources to the Fastify app using Nitric. In this example, let's add a pub/sub topic which allows us to perform work in the background, but still respond quickly via the HTTP API.
9696

97-
You can update the `app.js` file like so:
97+
You can update the `api.js` file like so:
9898

99-
```javascript title:services/app.js
99+
```javascript title:services/api.js
100100
import Fastify from 'fastify'
101101
import { http, topic } from '@nitric/sdk'
102102

0 commit comments

Comments
 (0)