{"version":3,"sources":["jsdelivr-header.js","/npm/daily-news-api@0.0.9/dist/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,OCNS,UAAa,2BACb,WAAc,qBAChB,WAAY,2BACZ,QAAS,WAEhB,MAAM,YAAc,CAAC,EAAO,OAAO,QAC/B,IACI,MAAM,EAAY,MAAM,CACpB,MAAO,IAAI,MACX,SAIJ,OAFA,OAAO,KAAK,4CAA4C,KACxD,OAAO,KAAK,2BAA2B,KAChC,CACX,CACA,MAAO,GACH,OAAO,MAAM,EACjB,GAEyB,gBAAzB,QAAQ,IAAI,UAAuD,WAAzB,QAAQ,IAAI,UACtD,YAAY,OAAO,qBAER","file":"/npm/daily-news-api@0.0.9/dist/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/daily-news-api@0.0.9/dist/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","import { serve } from \"@hono/node-server\";\nimport { config } from \"./config.js\";\nimport logger from \"./utils/logger.js\";\nimport app from \"./app.js\";\n// 启动服务器\nconst serveHotApi = (port = config.PORT) => {\n    try {\n        const apiServer = serve({\n            fetch: app.fetch,\n            port,\n        });\n        logger.info(`Daily News API successfully runs on port ${port}`);\n        logger.info(`Local: http://localhost:${port}`);\n        return apiServer;\n    }\n    catch (error) {\n        logger.error(error);\n    }\n};\nif (process.env.NODE_ENV === \"development\" || process.env.NODE_ENV === \"docker\") {\n    serveHotApi(config.PORT);\n}\nexport default serveHotApi;\n"]}