"use strict";
(() => {
var exports = {};
exports.id = 8234;
exports.ids = [8234];
exports.modules = {

/***/ 7429:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  "config": () => (/* binding */ config),
  "default": () => (/* binding */ handler)
});

;// CONCATENATED MODULE: external "http-proxy"
const external_http_proxy_namespaceObject = require("http-proxy");
var external_http_proxy_default = /*#__PURE__*/__webpack_require__.n(external_http_proxy_namespaceObject);
;// CONCATENATED MODULE: ./pages/api/file/upload.js

const config = {
    api: {
        externalResolver: true,
        bodyParser: false
    }
};
async function handler(req, res) {
    return await new Promise((resolve, reject)=>{
        const proxy = external_http_proxy_default().createProxy();
        proxy.once("proxyRes", resolve).once("error", reject).web(req, res, {
            changeOrigin: true,
            target: "http://localhost:8000/files",
            ignorePath: true
        });
    });
}


/***/ })

};
;

// load runtime
var __webpack_require__ = require("../../../webpack-api-runtime.js");
__webpack_require__.C(exports);
var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
var __webpack_exports__ = (__webpack_exec__(7429));
module.exports = __webpack_exports__;

})();