Skip to content

skitsanos/foxx-api-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Releases

No releases published

Packages

No packages published