ArangoDB Foxx Services Template
[build]
base = "."
publish = "./dist"
functions = "netlify-functions/"
[[redirects]]
from = "/*"
to = "/index.html"
status = 200
[[redirects]]
from = "/api/*"
to = "http://{YOUR_HOSTNAME}:8529/_db/{YOUR_ENDPOINT}/api/:splat"
status = 200
force = true
headers = {X-From = "Netlify"}
[[headers]]
for = "/*"
[headers.values]
x-designed-by = "skitsanos, https://github.com/skitsanos"
Before deploying it on Netlify, make sure there are two variables replaced:
- {YOUR_HOSTNAME} - the hostname where ArangoDb is running
- {YOUR_ENDPOINT} - endpoint where your flex services are mounted
Also please refer to Exposing Foxx to the browser on ArangoDB documentation web site.