Upgraded packages and removed static
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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}`);
|
Reference in New Issue
Block a user