Buckets:
| import httpProxy from 'http-proxy' | |
| export default async function handler(req, res) { | |
| const port = req.headers.host.split(':').pop() | |
| const proxy = httpProxy.createProxy({ | |
| target: `http://127.0.0.1:${port}/${ | |
| req.query.buildId | |
| ? process.env.NEXT_DEPLOYMENT_ID | |
| ? `_next/static/${req.query.buildId}/_ssgManifest.js?dpl=${process.env.NEXT_DEPLOYMENT_ID}` | |
| : `_next/static/${req.query.buildId}/_ssgManifest.js` | |
| : `user` | |
| }`, | |
| ignorePath: true, | |
| }) | |
| await new Promise((resolve, reject) => { | |
| proxy.on('error', reject) | |
| proxy.on('close', resolve) | |
| proxy.web(req, res) | |
| }) | |
| } | |
Xet Storage Details
- Size:
- 635 Bytes
- Xet hash:
- 445422ebea4d0fe054435130239c042f91029432faa0af48c27a84e289d9646e
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.