Azure / static-web-apps

Azure Static Web Apps. For bugs and feature requests, please create an issue in this repo. For community discussions, latest updates, kindly refer to the Discussions Tab. To know what's new in Static Web Apps, visit https://aka.ms/swa/ThisMonth
https://aka.ms/swa
MIT License
318 stars 53 forks source link

Nextjs 14.2.4 - The app build failed to produce artifact folder: 'out'. #1500

Closed gateremark closed 1 week ago

gateremark commented 1 week ago

Describe the bug

I have followed the Deploy static-rendered Next.js websites on Azure Static Web Apps documentation in deploying my next.js application. Everything on azure portal has been configured perfectly but facing an issue after leaving the Output location on Azure as default hence setting it to output_location: "out" in the GitHub actions yml file after the file is generated.

I have also configured my package.json for Static Web Apps to use Node version 18.17.1 + hence everything in the actions including npm install is working.

Screenshot from 2024-06-19 15-18-13

Screenshot from 2024-06-19 15-17-09

gateremark commented 1 week ago

I have edited output_location to output_location: "" by removing the 'out' then it has worked.

Screenshot from 2024-06-19 15-21-53