Cannot GET / gulp

Viewed 19

I'm having problems starting browsersync. The site simply does not load. It gives an error:

Cannot GET /". I attach my project structure and server settings.

// SERVERconst server = () => {
browserSync.init({
    server: {
        baseDir: path.root
    }
 });
}

another file path.js

    const pathSrc = "/src";
    const pathDest = "/public";
    
    module.exports = {
    root: pathDest,

    html: {
        src: pathSrc + "/html/*.html",
        watch: pathSrc + "/html/**/*.html",
        dest: pathDest
    },

    pug: {
        src: pathSrc + "/pug/*.pug",
        watch: pathSrc + "/pug/**/*.pug",
        dest: pathDest
    }
}

enter image description here

enter image description here

0 Answers
Related