You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
147
+
Configuration is easiest when using [Netlify CLI](https://developers.netlify.com/cli/).
148
+
149
+
1. Start by running this command:
150
+
151
+
```bash
152
+
npx netlify init
153
+
```
154
+
155
+
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.
156
+
157
+
2. If you're using server-side functionality, you need to manually set the functions directory to `dist/analog` in your `netlify.toml`:
158
+
159
+
```toml
160
+
[build]
161
+
command = "npm run build"
162
+
publish = "dist/analog/public"
163
+
functions = "dist/analog" # ← update this
164
+
```
165
+
166
+
3. Finally, deploy your app:
167
+
168
+
```bash
169
+
npx netlify deploy
170
+
```
171
+
172
+
#### Manual configuration
173
+
174
+
Alternatively, you can configure your project's build settings in the Netlify app.
175
+
176
+
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.
0 commit comments