> ## Documentation Index
> Fetch the complete documentation index at: https://docs.deplify.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Next JS Blueprint

The Next JS Blueprint will build and deploy your Next JS project to your AWS account.  Server side routes will be hosted on AWS Lambda + API Gateway, static asset routes will be hosted in S3.  All of this will sit behind a cloudfront distribution for speed.

## Getting Started

Deploying your Next Js project is easy, just follow the steps below.

<Steps>
  <Step title="Enable Standalone mode in your next.config.js file">
    <Info>
      This is required.  More on standalone mode [here](https://nextjs.org/docs/pages/api-reference/next-config-js/output#automatically-copying-traced-files).
    </Info>

    ```java theme={null}
    module.exports = {
        output: 'standalone',
    }
    ```
  </Step>

  <Step title="Create a Next JS stack in Deplify">
    * Hit the `Add a Stack` button in the environment view.
    * Choose the `Next JS` blueprint.
    * Build settings are entered by default, optionally make changes if you need them.
    * Click `Create Stack`
  </Step>

  <Step title="All Done">
    Your project will be deployed in around 10 minutes.

    <Info>
      **Note** Subsequent deployments will be much faster.  The first deployment takes around 10 minutes since a cloudfront distribution is getting created.
    </Info>
  </Step>
</Steps>
