First of all, sorry for the lack of documentation. We are going to release more this week.
But to answer to your question:
frontity build creates two things:
- A final
/build/static folder with other
.js files and assets.
/build/server.js is your server. You can either upload it to a serverless hosting or start it with
frontity serve in your own Node.
/build/static folder are the files that you will send to the client. They are served using the
frontity serve command or you can upload them to a static server or a CDN.
We didn’t want to include it in the core because sometimes is better to leave that task to Nginx or your CDN. But we are going to release a
@frontity/compress package that adds compression to the Frontity server itself. Actually, it’s one of the first server packages we want to release along with others like
build/server.js is ready for production