const staticPath = path.join(__dirname, '../public'); // 2nd parameter is folder path u want to combine app.use(express.static(staticPath));