Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 890 Bytes

README.md

File metadata and controls

36 lines (27 loc) · 890 Bytes

foxx-api-template

ArangoDB Foxx Services Template

netlify.toml example

[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.