-
Notifications
You must be signed in to change notification settings - Fork 13
/
netlify.toml
29 lines (25 loc) · 1.2 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
# Reference docs: https://docs.netlify.com/configure-builds/file-based-configuration/
[build]
# Because https://docs.netlify.com/configure-builds/troubleshooting-tips/#command-not-found
# See also https://docs.netlify.com/configure-builds/monorepos/
# npm 8.5 does some weird shenanigans when multiple package.json coexist within a directory tree
base = "front"
publish = "build"
command = "npm run build -- --mode production"
[build.environment]
# System env
NODE_VERSION = "18"
ENABLE_SOURCEMAPS = "true"
NPM_FLAGS = "--no-audit --no-fund"
# App env (new Snowpack)
SNOWPACK_PUBLIC_EXPORT_ENDPOINT = "https://stylo-dev.huma-num.fr"
SNOWPACK_PUBLIC_GRAPHQL_ENDPOINT = "https://stylo-dev.huma-num.fr/graphql"
SNOWPACK_PUBLIC_PROCESS_ENDPOINT = "https://stylo-export.ecrituresnumeriques.ca"
SNOWPACK_PUBLIC_PANDOC_EXPORT_ENDPOINT = "https://export.stylo-dev.huma-num.fr"
SNOWPACK_PUBLIC_BACKEND_ENDPOINT = "https://stylo-dev.huma-num.fr"
SNOWPACK_PUBLIC_HUMAN_ID_REGISTER_ENDPOINT = "https://auth-test.huma-num.fr/register?service=http://stylo-dev.huma-num.fr/authorization-code/callback"
[[redirects]]
from = "/*"
to = "/index.html"
force = false
status = 200