Mercurial
comparison benchmark/bun-http-framework-benchmark/src/node/adonis/config/app.js @ 183:a8976a008a9d
[BenchMark] Added bun bench mark to test seoboe vs other popular benchmarks.
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Fri, 23 Jan 2026 21:19:08 -0800 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 179:8d17f6e6e290 | 183:a8976a008a9d |
|---|---|
| 1 "use strict"; | |
| 2 var __importDefault = (this && this.__importDefault) || function (mod) { | |
| 3 return (mod && mod.__esModule) ? mod : { "default": mod }; | |
| 4 }; | |
| 5 Object.defineProperty(exports, "__esModule", { value: true }); | |
| 6 exports.validator = exports.profiler = exports.logger = exports.http = exports.appKey = void 0; | |
| 7 const proxy_addr_1 = __importDefault(require("proxy-addr")); | |
| 8 const Env_1 = __importDefault(global[Symbol.for('ioc.use')]("Adonis/Core/Env")); | |
| 9 exports.appKey = Env_1.default.get('APP_KEY'); | |
| 10 exports.http = { | |
| 11 allowMethodSpoofing: false, | |
| 12 subdomainOffset: 2, | |
| 13 generateRequestId: false, | |
| 14 trustProxy: proxy_addr_1.default.compile('loopback'), | |
| 15 etag: false, | |
| 16 jsonpCallbackName: 'callback', | |
| 17 cookie: { | |
| 18 domain: '', | |
| 19 path: '/', | |
| 20 maxAge: '2h', | |
| 21 httpOnly: true, | |
| 22 secure: false, | |
| 23 sameSite: false, | |
| 24 }, | |
| 25 }; | |
| 26 exports.logger = { | |
| 27 name: Env_1.default.get('APP_NAME'), | |
| 28 enabled: true, | |
| 29 level: Env_1.default.get('LOG_LEVEL', 'info'), | |
| 30 prettyPrint: Env_1.default.get('NODE_ENV') === 'development', | |
| 31 }; | |
| 32 exports.profiler = { | |
| 33 enabled: true, | |
| 34 blacklist: [], | |
| 35 whitelist: [], | |
| 36 }; | |
| 37 exports.validator = {}; | |
| 38 //# sourceMappingURL=app.js.map |