UNPKG

express-companion

Version:
1 lines 1.31 kB
{"version":3,"sources":["../../../src/modules/config-generator/config-generator.constant.ts"],"names":["defaultOptions"],"mappings":"AAGO,IAAMA,EAAmC,CAE9C,KAAM,gBACN,KAAM,YACN,KAAM,IACN,UAAW,SACX,SAAU,QACV,WAAY,GACZ,eAAgB,CAAC,MAAO,OAAQ,MAAO,QAAQ,EAC/C,QAAS,GACT,QAAS,CACP,WAAY,GACZ,WAAY,GACZ,WAAY,GACZ,QAAS,GACT,cAAe,EACjB,EACA,YAAa,CACX,IAAK,CACH,KAAM,MACR,EACA,KAAM,CACJ,OAAQ,GACR,QAAS,CAAC,MAAO,OAAQ,QAAS,QAAQ,EAC1C,YAAa,EACf,CACF,CACF","sourcesContent":["import { CompanionOptions } from \"../../types\";\n\n// Define default configuration options\nexport const defaultOptions: CompanionOptions = {\n // Fill in default values for each configuration option based on your plugin's requirements\n name: \"Companion App\",\n host: \"localhost\",\n port: 3000,\n publicDir: \"public\",\n viewsDir: \"views\",\n viewEngine: false,\n allowedMethods: [\"GET\", \"POST\", \"PUT\", \"DELETE\"],\n express: true, // Enable Express server. Other options: `hyper-express`\n headers: {\n xPoweredBy: true,\n xRequestId: true,\n xUserAgent: true,\n xRealIp: true,\n xForwardedFor: true,\n },\n middlewares: {\n env: {\n path: \".env\",\n },\n cors: {\n origin: true,\n methods: [\"GET\", \"POST\", \"PATCH\", \"DELETE\"],\n credentials: true,\n },\n },\n};\n"]}