---
title: "Comment by Khawaja Hamdan Ahmad on \"How To Deploy A Next.js App Using Spring Boot\" | Hashnode"
description: "How to do this with Next js 14 version"
url: "https://hashnode.com/posts/deploy-nextjs-with-spring-boot/645512a6ce5e292ba1731ab0/comment/66cdece07f413ac52fbed613"
---

[Discussion](https://hashnode.com/posts/deploy-nextjs-with-spring-boot/645512a6ce5e292ba1731ab0)

Comment [How To Deploy A Next.js App Using Spring Boot](https://hashnode.com/posts/deploy-nextjs-with-spring-boot/645512a6ce5e292ba1731ab0)

[Khawaja Hamdan Ahmad](https://hashnode.com/@hamdanahmad1)

[Aug 27, 2024](https://hashnode.com/posts/deploy-nextjs-with-spring-boot/645512a6ce5e292ba1731ab0/comment/66cdece07f413ac52fbed613)

How to do this with Next js 14 version

[gigiyy](https://hashnode.com/@gigiyy)

[Feb 19, 2025](https://hashnode.com/posts/deploy-nextjs-with-spring-boot/645512a6ce5e292ba1731ab0/comment/66cdece07f413ac52fbed613#reply-67b5efc33d247c1575e6227f)

instead of using export command as shown in article, set `output: 'export',` in your next.config.ts instead. so you only need to run `npm run build` instead of export.
