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