Buckets:
| import next from 'next' | |
| import http from 'http' | |
| const dir = __dirname | |
| const port = process.env.PORT || 3000 | |
| const dev = process.env.NODE_ENV !== 'production' | |
| const app = next({ dev, dir }) | |
| const handleNextRequests = app.getRequestHandler() | |
| app.prepare().then(() => { | |
| const server = new http.Server((req, res) => { | |
| handleNextRequests(req, res) | |
| }) | |
| server.listen(port) | |
| }) | |
Xet Storage Details
- Size:
- 383 Bytes
- Xet hash:
- 1fb38d18ee7cf2764c90ef35832871c38e076a9b6f9457076c665a217a2431ec
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.