Upgraded packages and removed static
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-05-16 10:21:57 +02:00
parent 08c7589bad
commit c1b1081b10
3 changed files with 603 additions and 6 deletions

View File

@@ -7,9 +7,9 @@ const HOST = '0.0.0.0';
const fastify = require('fastify')()
const path = require('path')
fastify.register(require('fastify-static'), {
root: path.join(__dirname),
})
// fastify.register(require('@fastify/static'), {
// root: path.join(__dirname),
// })
fastify.get('/', function (req, reply) {
return reply.sendFile('index.html');
@@ -17,4 +17,4 @@ fastify.get('/', function (req, reply) {
fastify.listen(PORT, HOST);
console.log(`Running on http://${HOST}:${PORT}`);
console.log(`Running on http://${HOST}:${PORT}`);