I'm new to next.js build pipeline setup. Able to publish the artifacts but copying files and publishing the artifacts is taking loner time i.e., 30+ minutes. How can I reduce the build time. Included cache in the build but it did not work
Tried adding cache task
Try using the below yaml pipeline to build and publish your NextJs node app artifact and deploy it in Azure Web app:-
My yaml code:-
Output:-
You can also try below yaml code to caching your npm build :-
$(npm_config_cache)is the location of your npm cache:-Output:-