Deployment
Answered
Sloth bear posted this in #help-forum
Sloth bearOP
Hello, I don't understand how can I deploy my app without "output": "export" because I want to use some features like API Routes.
Thanks
Thanks
9 Replies
@Sloth bear Hello, I don't understand how can I deploy my app without "output": "export" because I want to use some features like API Routes.
Thanks
Remove those lines, and deploy it to platforms like [cf pages](https://pages.cloudflare.com/) or [vercel](https://vercel.com/)
Sloth bearOP
ok thks
So I just enter npm run build ?
And firebase deploy
?
You can't deploy next.js api routes to firebase Hosting
Answer
You'll have to use static build
Sloth bearOP
Ok Thanks
@"use php" You can't deploy next.js api routes to firebase Hosting
Mark message as solution