Skip to content

Commit

Permalink
Merge pull request #226 from tudorpip/patch-6
Browse files Browse the repository at this point in the history
Updated the next.js framework
  • Loading branch information
tudorpip authored Aug 5, 2024
2 parents b7cdf3e + c363db5 commit d18a97a
Showing 1 changed file with 46 additions and 5 deletions.
51 changes: 46 additions & 5 deletions docs/frameworks/nextjs.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
description: Learn how to deploy a Next.js application with Genezio.
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import useBaseUrl from '@docusaurus/useBaseUrl';

# Next.js
Expand All @@ -16,9 +18,46 @@ Next.js is a React framework that allows you to build static and server-rendered
Get started in no time with the [Next.js template](https://app.genez.io/nextjs-getting-started).
:::

## Deployment

To deploy a Next.js application with Genezio, all you need to do is to run the following command in the root directory of your project:
# Deployment

Learn how to deploy an existing Next.js app using Genezio, a serverless deployment platform that simplifies app management and reduces costs

### 1. Install genezio

Use your preferred package manager to install Genezio:

<Tabs>
<TabItem className="tab-item" value="npm" label="npm">
<div id="step1-install-npm">
```
npm install genezio -g
```
</div>
</TabItem>
<TabItem className="tab-item" value="pnpm" label="pnpm">
<div id="step1-install-pnpm">
```
pnpm add -g genezio
```
</div>
</TabItem>
<TabItem className="tab-item" value="yarn" label="yarn">
<div id="step1-install-yarn">
```
yarn add global genezio
```
</div>
</TabItem>
</Tabs>

### 2. Deploy your project

:::info
If you don't already have a Next.js app, you can create one by running in your terminal:
```
genezio create nextjs --name nextjs-project --region us-east-1 --default
```
:::

```bash
genezio deploy
Expand All @@ -36,8 +75,10 @@ region: us-east-1
# Specifies the version of the YAML configuration syntax being used.
yamlVersion: 2
```
### 3. Monitor your project
You can monitor and manage your application through the [Genezio App Dashboard](https://app.genez.io/dashboard). The dashboard URL, also provided after deployment, allows you to access comprehensive views of your project's status and logs.
## Frequently Asked Questions
# Frequently Asked Questions
- ### How do I set a custom subdomain for my Next.js application?
Expand Down Expand Up @@ -69,7 +110,7 @@ yamlVersion: 2

No, you don't need a Dockerfile to deploy a Next.js application with Genezio. Genezio builds your application using a serverless architecture, which means that you don't need to worry about Docker, Dockerfiles or scaling.

## Known Limitations
# Known Limitations

### Incremental Static Regeneration (ISR)

Expand Down

0 comments on commit d18a97a

Please sign in to comment.