How to get index.html file when build the next app?
Unanswered
rand posted this in #help-forum
randOP
Hello, folks, i m trying to deploy the next app to aws ec2 ubuntu, but no way for pointing the entry of the nginx to index html file of built next app since the next app does not make that such file when building
i added the configuration to next confg file like output: export but no luck.
i added the configuration to next confg file like output: export but no luck.
6 Replies
@rand Hello, folks, i m trying to deploy the next app to aws ec2 ubuntu, but no way for pointing the entry of the nginx to index html file of built next app since the next app does not make that such file when building
i added the configuration to next confg file like output: export but no luck.
randOP
@Silver Marten
Jersey Wooly
Is it a static site?
if so - and I've not tried this myself - but have you followed all the instructions and config over at: https://nextjs.org/docs/app/building-your-application/deploying/static-exports
@rand Hello, folks, i m trying to deploy the next app to aws ec2 ubuntu, but no way for pointing the entry of the nginx to index html file of built next app since the next app does not make that such file when building
i added the configuration to next confg file like output: export but no luck.
If you're deploying on ec2, I highly recommend to use nginx proxy to host the app
If you still wanna use static, You can view the link above
@rand resolved?