UNPKG

@farmfe/core

Version:

Farm is a extremely fast web build tool written in Rust. Farm can start a project in milliseconds and perform HMR within 10ms, making it much faster than similar tools like webpack and vite.

14 lines 380 B
export function headers(devSeverContext) { const { config } = devSeverContext; if (!config.headers) return; return async (ctx, next) => { if (config.headers) { for (const name in config.headers) { ctx.set(name, config.headers[name]); } } await next(); }; } //# sourceMappingURL=headers.js.map