Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 32 additions & 3 deletions apps/docs-app/docs/features/deployment/providers.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,41 @@ You can also check out [Github Integration](https://docs.zerops.io/references/gi

Analog supports deploying on [Netlify](https://netlify.com/) with minimal configuration.

### Deploying the Project
### Deploying the project

<Tabs groupId="porject-type">
<TabItem label="Create analog" value="create-analog">
In the build settings of your Netlify project, set the [publish directory](https://docs.netlify.com/configure-builds/overview/#definitions) to `dist/analog/public` to deploy the static assets and the [functions directory](https://docs.netlify.com/configure-builds/overview/#definitions) to `dist/analog` to deploy the server.
</TabItem>
Configuration is easiest when using [Netlify CLI](https://developers.netlify.com/cli/).

1. Start by running this command:

```bash
npx netlify init
```

If this is a new Netlify project, you'll be prompted to initialize it; build settings will be automatically configured in a `netlify.toml` file.

2. If you're using server-side functionality, you need to manually set the functions directory to `dist/analog` in your `netlify.toml`:

```toml
[build]
command = "npm run build"
publish = "dist/analog/public"
functions = "dist/analog" # ← update this
```

3. Finally, deploy your app:

```bash
npx netlify deploy
```

#### Manual configuration

Alternatively, you can configure your project's build settings in the Netlify app.

Set the [publish directory](https://docs.netlify.com/configure-builds/overview/#definitions) to `dist/analog/public` to deploy the static assets and the [functions directory](https://docs.netlify.com/configure-builds/overview/#definitions) to `dist/analog` to deploy the server.
</TabItem>

<TabItem label="Nx" value="nx">
In the build settings of your Netlify project on the web UI, do the following.
Expand Down