You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/deployment.md
+28-1Lines changed: 28 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,8 @@ Before deploying your NestJS application, ensure you have:
12
12
- Any required services, like a database, set up and ready to go.
13
13
- At least an LTS version of Node.js installed on your deployment platform.
14
14
15
+
> info **Hint** If you are looking for a cloud-based platform to deploy your NestJS application, check out [Mau](https://mau.nestjs.com/), our official platform for deploying NestJS applications on AWS.
16
+
15
17
#### Building your application
16
18
17
19
To build your NestJS application, you need to compile your TypeScript code into JavaScript. This process generates a `dist` directory containing the compiled files. You can build your application by running the following command:
@@ -114,7 +116,7 @@ This process is straightforward with containerization technologies like [Docker]
114
116
115
117
There are a few more tips to keep in mind when deploying your NestJS application:
116
118
117
-
-**Security**: Ensure your application is secure and protected from common threats like SQL injection, XSS, etc. Check out [Helmet chapter](/security/helmet) for more details.
119
+
-**Security**: Ensure your application is secure and protected from common threats like SQL injection, XSS, etc. See the "Security" category for more details.
118
120
-**Monitoring**: Use monitoring tools like [Prometheus](https://prometheus.io/) or [New Relic](https://newrelic.com/) to track your application's performance and health. If you're using a cloud provider/Mau, they mau offer built-in monitoring services (like [AWS CloudWatch](https://aws.amazon.com/cloudwatch/) etc.)
119
121
-**Do not hardcode environment variables**: Avoid hardcoding sensitive information like API keys, passwords, or tokens in your code. Use environment variables or a secrets manager to store and access these values securely.
120
122
-**Backups**: Regularly back up your data to prevent data loss in case of an incident.
@@ -226,4 +228,29 @@ With Mau, provisioning and maintaining your infrastructure is as simple as click
0 commit comments