HI. I've created a fastify project using fastify-cli but I can't find how to make my local project use https. I already generated the certificates.
When not using fastify-cli I can do this:
const fastify = require("fastify")({
https: {
key: fs.readFileSync("path/to/key.pem"),
cert: fs.readFileSync("path/to/cert.pem"),
},
});
But I don't see how to do same when using fastify-cli.
HI. I've created a fastify project using fastify-cli but I can't find how to make my local project use https. I already generated the certificates.
When not using fastify-cli I can do this:
But I don't see how to do same when using fastify-cli.