Deploy your Next.js application with OpenTelemetry to Render via infrastack.ai
Learn how to deploy your Next.js application with OpenTelemetry to Render via infrastack.ai
What you will learn
- How to deploy your Next.js application with OpenTelemetry to Render with infrastack.ai
Prerequisites
- A Render account
- An infrastack.ai account
- A Next.js application configured with the infrastack.ai SDK, see Integrate OpenTelemetry for Next.js with infrastack.ai
The application should be on the nodejs
runtime. The edge
runtime is not supported at this time.
Overview
Render is a platform for deploying applications with ease. It supports a wide range of frameworks, including Next.js. With the power of infrastack.ai and OpenTelemetry, you can get comprehensive observability for your Next.js application on Render.
After you have configured your application with the infrastack.ai SDK by following the Integrate OpenTelemetry for Next.js with infrastack.ai guide, you can deploy your application to Render by following these steps:
Push your application code to a GitHub repository
- On your GitHub account, create a new repository or use an existing one. It can be private or public.
- Push your application code to the repository.
- If you need help setting up your repo, take a look at this guide on GitHub.
Create a web service on Render
- Go to the Render dashboard.
- Click on the
+ New
button. - Select the
Web Service
option. - Select the
GitHub
option. - Follow the instructions to connect your GitHub account to Render.
- Select the repository you created in the previous step.
- Click on the
Connect
button.
Configure your environment variables
- Scroll down to the
Environment Variables
section. - Add the following environment variable:
INFRASTACK_API_KEY
: Your infrastack.ai API key.
Deploy your application
- Click on the
Deploy Web Service
button.During the deployment, you will see the following logs:It will take a few minutes to deploy your application.
Visit your application
You can visit your application by clicking on the URL displayed in your web service dashboard.