-
Notifications
You must be signed in to change notification settings - Fork 1
/
netlify.toml
47 lines (33 loc) · 1.36 KB
/
netlify.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
[build]
# Directory where the build system installs dependencies
# and runs your build. Store your package.json, .nvmrc, etc here.
# If not set, defaults to the root directory.
base = "/"
# Directory that contains the deploy-ready HTML files and
# assets generated by the build. This is an absolute path relative
# to the base directory, which is the root by default (/).
# This sample publishes the directory located at the absolute
# path "root/project/build-output"
publish = "build/"
# The following redirect is intended for use with most SPAs
# that handle routing internally.
[[redirects]]
from = "/*"
to = "/index.html"
status = 200
[functions]
# Directory with serverless functions, including background
# functions, to deploy. This is an absolute path relative to the
# base directory, which is the root by default (/).
directory = "/functions"
# Use [dev] to set configuration overrides for local
# development environments run using Netlify Dev - except
# for environment variables. Environment variables for Netlify
# Dev should be set under [context.dev.environment] instead.
[dev]
port = 8888
publish = "dist"
[template.environment]
MONGODB_URI = "Your MongoDB URI"
MONGODB_DATABASE = "A database name to host the tasks (eg. tasks_netlify)"
MONGODB_COLLECTION = "A collection name to store the tasks (eg. tasks)"