Skip to main content
A site function will be a small piece of server code that belongs to your site, such as a form handler or an API route, called from the page with fluid.fn. Functions aren’t available yet.

What happens today

  • A publish refuses a site that has a functions/ folder or a config/functions.json, and nothing is published. fluid sites lint reports the same thing before you publish.
  • fluid.fn.fetch(name) calls /_fluid/fn/<name> on the site’s own address, and every call answers 404 with the code fn_not_available. fluid.fn.fetch returns that response as it is, so code you write against it keeps working once functions ship.
  • You can already keep values for functions with environment variables and secrets. Nothing reads them yet.

What to use instead