WIP ๐ฉ๐จโ
Deploy any Node.js http server serverlessly to Tencent Cloud. Use any framework you like - Vanilla HTTP server, express, koa, apollo-server...
npm i serverless -g
Code structure
|- app.js
|- serverless.yml
// app.js
const http = require('http');
http
.createServer((req, res) => {
res.end('Hello World\n')
})
.listen(8080);
// You will need to export your server
module.exports = http;
# serverless.yml
component: http
name: test
inputs:
src: ./
entryFile: app.js
region: ap-guangzhou
domain: slite.dev
serverless deploy