I have a problème when i try to deploy my projet.
I use node.js and in my “index.js” i added
app.use(express.static(path.join(__dirname, ‘/client/dist’)));
app.get(‘*’, (req, res) => {
res.sendFile(path.join(__dirname, ‘client’, ‘dist’, ‘index.html’));
});
and in my package.js i added
“scripts”: {
“dev”: “nodemon api/index.js”,
“start”: “node api/index.js”,
“build”: “npm install && npm install --prefix client && npm run build --prefix client”
},
I changed “bcryptjs” to “bcrypt” but nothing changed, so i returned with “bcryptjs”.
Someone can help me?
Thank you verry much