<commit_before><!--
description: "Deploy (publish) your website."
date: 2020-12-19
alias: documentation/publish
-->

# Deploy

By default your static site is built in the `_site` directory, and can be deployed as is.

Below are some recipes to automate build and/or deployment of a static site.

## [Netlify](https://www.netlify.com)

_netlify.toml_:

```bash
[build]
  publish = "_site"
  command = "curl -sSOL https://cecil.app/build.sh && bash ./build.sh"
[build.environment]
  CECIL_ENV = "production"

[context.deploy-preview.environment]
  CECIL_ENV = "preview"

[context.branch-deploy.environment]
  CECIL_ENV = "branch"
```

[Official documentation](https://www.netlify.com/docs/continuous-deployment/)

## [Vercel](https://vercel.com)

_vercel.json_:

```json
{
  "builds": [{
    "src": "package.json",
    "use": "@vercel/static-build",
    "config": { "distDir": "_site" }
  }]
}
```
<commit_msg>docs: fix deploy Netlify recipe<commit_after><!--
description: "Deploy (publish) your website."
date: 2020-12-19
alias: documentation/publish
-->

# Deploy

By default your static site is built in the `_site` directory, and can be deployed as is.

Below are some recipes to automate build and/or deployment of a static site.

## [Netlify](https://www.netlify.com)

_netlify.toml_:

```bash
[build]
  publish = "_site"
  command = "curl -sSOL https://cecil.app/build.sh && bash ./build.sh"

[build.environment]
  PHP_VERSION = "7.4"

[context.production.environment]
  CECIL_ENV = "production"

[context.deploy-preview.environment]
  CECIL_ENV = "preview"

[context.branch-deploy.environment]
  CECIL_ENV = "branch"
```

[Official documentation](https://www.netlify.com/docs/continuous-deployment/)

## [Vercel](https://vercel.com)

_vercel.json_:

```json
{
  "builds": [{
    "src": "package.json",
    "use": "@vercel/static-build",
    "config": { "distDir": "_site" }
  }]
}
```

{'fraction_non_alphanumeric': 0.16869381279746165, 'fraction_numerical': 0.009518773135906928, 'mean_word_length': 4.086021505376344, 'pattern_counts': {'":': 10, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 8, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2527311', 'n_tokens_mistral': 715, 'n_tokens_neox': 670, 'n_words': 157}