@murthy-ts no it's not possible in appdrag, but you can do that using our sister company, Elestio:
https://elest.io/cicd
There we support nextjs:
https://blog.elest.io/step-by-step-guide-to-self-hosting-next-js-apps/
https://www.youtube.com/watch?v=OSJHLgqpNvU