Static Vs Dynamic

`fastn` can be deployed in two main modes, static and dynamic.

Static Mode

To use static mode you run `fastn build` command, and this command creates a folder named `.build` in the `fastn` package root folder (which is the folder that contains `FASTN.ftd` file). This folder contains HTML, CSS, JS, and image files. This folder can be deployed on any static web server. Static mode is a great idea for a lot of content heavy, and infrequently changing sites.

Static Hosting Is Cheaper

A lot of static hosting providers provide free hosting for static content. Static host means no dynamic computation, and so it is quite cheap to host. You can checkout our guide on [Github Pages](/github-pages/) and [Vercel](/vercel/), two of the popular options available to you. Both offer free plans.

Static Hosting Is Harder To Hack

If you are using static hosting, lesser software is running on the server, and therefore it is harder to hack. Wordpress is a common alternative to build content heavy websites, and Wordpress is often hacked by bad players.

Static Sites Are Faster

Since static sites are rendered HTML, so the server can directly serve the HTML files, making it much faster to serve.

Dynamic Mode

Static mode is great, but sometimes you want dynamic features. Maybe you want to have authentication on your site. Or maybe you want to collect information from the visitors or show them up to date information. To deploy your `fastn` website in dynamic mode you have to deploy the `fastn` binary itself. `fastn` can run on Linux, Windows and Mac so you have a lot of choices for where to deploy it.

Support `fastn`!

Enjoying `fastn`? Please consider giving us a star ⭐️ on [GitHub](https://github.com/fastn-stack/fastn) to show your support!
[⭐️](https://github.com/fastn-stack/fastn)

Getting Help

Have a question or need help? Visit our [GitHub Q&A discussion](https://github.com/fastn-stack/fastn/discussions/categories/q-a) to get answers and subscribe to it to stay tuned. Join our [Discord](https://discord.gg/a7eBUeutWD) channel and share your thoughts, suggestion, question etc. Connect with our [community](/community/)!
[💻️](/community/)

Found an issue?

If you find some issue, please visit our [GitHub issues](https://github.com/fastn-stack/fastn/issues) to tell us about it.

Quick links:

- [Install `fastn`](install/) - [Create `fastn` package](create-fastn-package/) - [Expander Crash Course](expander/) - [Syntax Highlighting in Sublime Text](/sublime/)

Join us

We welcome you to join our [Discord](https://discord.gg/a7eBUeutWD) community today. We are trying to create the language for human beings and we do not believe it would be possible without your support. We would love to hear from you.
Copyright © 2023 - [FifthTry.com](https://www.fifthtry.com/)