#How do I publish a next 13 app on
1 messages · Page 1 of 1 (latest)
To publish a Next.js app on Netlify, you will first need to create a new site in your Netlify account. To do this, you can follow the steps outlined in the Netlify documentation:
Sign in to your Netlify account and go to the Sites page.
Click the New site from Git button.
Select the Git provider where your Next.js app is hosted (e.g. GitHub, GitLab, Bitbucket) and follow the prompts to authorize Netlify to access your Git repository.
In the next step, you will need to select the repository that contains your Next.js app and configure the build settings for your site.
In the build settings, you will need to specify the command to build your Next.js app. For a Next.js app, this is typically npm run build or yarn build. You will also need to specify the directory that contains the built version of your app, which is typically the /public directory.
After you have configured your build settings, you can click the Deploy site button to start the deployment process. If the deployment is successful, you will be able to access your Next.js app at the URL provided by Netlify.
As for the error message that you are seeing in the console, it is difficult for me to provide specific advice without more information. The error message indicates that there was an issue with rendering some of the server-side components of your Next.js app. This could be caused by a variety of issues, such as an error in your server-side code or a problem with your build configuration.
did you just use AI to generate this answer? 
Didn't manage to get it to work there
Trying on layer0 now
this exact code worked fine on vercel digitalocean and heroku
but I'm stuck at this step:
Step 4: Update your Layer0 configuration and redeploy 0 config set-backend origin \ --domainOrIp=layer0-origin.site.com \ --environment production \ --deploy
not sure where to set this
0 is nothing