This commit is contained in:
parent
98e729bdd6
commit
b735dcc0b8
16
package.json
16
package.json
@ -5,7 +5,8 @@
|
||||
"main": "server.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
"start": "node server.js"
|
||||
"start": "node server.js",
|
||||
"demon": "nodemon server.js"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@ -14,11 +15,12 @@
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"axios": "latest",
|
||||
"fastify": "latest",
|
||||
"fastify-leveldb": "latest",
|
||||
"fastify-static": "latest",
|
||||
"mkdirp": "latest",
|
||||
"node-sass": "latest"
|
||||
"@fastify/leveldb": "^5.0.1",
|
||||
"@fastify/static": "^6.10.2",
|
||||
"axios": "^1.4.0",
|
||||
"fastify": "^4.18.0",
|
||||
"mkdirp": "^3.0.1",
|
||||
"node-sass": "^9.0.0",
|
||||
"nodemon": "^2.0.22"
|
||||
}
|
||||
}
|
||||
|
@ -3,12 +3,12 @@ const path = require('path');
|
||||
|
||||
const csass = require("./compile_sass").compileSassMain();
|
||||
|
||||
fastify.register(require('fastify-static'), {
|
||||
fastify.register(require('@fastify/static'), {
|
||||
root: path.join(__dirname, 'public'),
|
||||
prefix: '/public/',
|
||||
});
|
||||
|
||||
fastify.register(require('fastify-leveldb'), {
|
||||
fastify.register(require('@fastify/leveldb'), {
|
||||
name: 'db'
|
||||
}, err => {
|
||||
if (err) throw err
|
||||
|
Loading…
x
Reference in New Issue
Block a user