> For the complete documentation index, see [llms.txt](https://flexbox.gitbook.io/foundation-101/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://flexbox.gitbook.io/foundation-101/hosting.md).

# Hosting

## Build folder

By convention the `dist`folder is used for compiled code.

In our case we are going to change that for a FREE hosting hack. Edit the `config.yml` file like this :

![](https://1846088502-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M3ujWNlBKbEnPw4O7oW%2F-M3ujZKZwxQoJaQFNCA_%2F-M3ujdJj8AFCOuEJW_4n%2Ffoundation-cli-build-hack.png?generation=1585828513828131\&alt=media)

Use this command to build the website

```bash
$ foundation build
```

*Challenges:*

* [ ] Commit your changes
* [ ] Push to GitHub

## GitHub

On the repository of your project, go to **Settings** > **Options** > **GitHub page**

![](https://1846088502-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M3ujWNlBKbEnPw4O7oW%2F-M3ujZKZwxQoJaQFNCA_%2F-M3ujdJle8ik-F8jDCo0%2Fgithub-pages-docs-folder.png?generation=1585828512807869\&alt=media)

*Challenges:*

* [ ] Open a your favorite web browser and open https\://\<USER\_NAME>.github.io/\<PROJECT\_NAME>

## Link your own domain name

### The lazy way

Go to **Settings** > **Options** > **GitHub page** and add your own domain name

### ![](https://1846088502-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M3ujWNlBKbEnPw4O7oW%2F-M3ujZKZwxQoJaQFNCA_%2F-M3ujdJnfah8bLzqkdHz%2Fgithub-pages-custom-domain.png?generation=1585828511847598\&alt=media)

### The hacker way

There are a lot of solutions for using a [custom domain with GitHub Pages](https://help.github.com/articles/using-a-custom-domain-with-github-pages/). The simple one is to change your DNS.

1. Update your A record for this adress `192.30.252.153`
2. Add a `CNAME`file [like this one](https://github.com/flexbox/davidl/blob/master/source/CNAME)

💡 **protip:** Each time `foundation watch` create a CNAME file.
