Plugins are used to encapsulate and abstract away adding functionality to your Outsmartly edge. They'll often include things like middleware, interceptors, and overrides.
Making your own plugins is possible, but more commonly you'll use one of the existing ones maintained by Outsmartly, or ones from the community:
import { somePlugin } from'@outsmartly/plugin-something';exportdefault { host:'example.outsmartly.app', environments: [ { name:'production', origin:'https://my-example-website.vercel.app', }, ], plugins: [// Most plugins provide a factory function for passing in options:somePlugin({ something:true, }), ],};
Making Your Own Plugins
Plugins are objects with a name and lifecycle methods.