function createServerOptions({
    paths,
    server: options
}) {
    const config = {
        open: false,
        notify: false,
        ghostMode: false
    };

    // Resolve the URL for the BrowserSync server
    if (isNonEmptyString(paths.url)) {
        // Use proxy
        config.proxy = paths.url;
    } else if (isNonEmptyString(paths.dest)) {
        // Use base directory
        config.server = {
            baseDir: paths.dest
        };
    }

    merge(config, resolve(options));

    // If HTTPS is enabled, prepend `https://` to proxy URL
    if (options?.https) {
        if (isNonEmptyString(config.proxy?.target)) {
            config.proxy.target = prependSchemeToUrl(config.proxy.target, 'https');
        } else if (isNonEmptyString(config.proxy)) {
            config.proxy = prependSchemeToUrl(config.proxy, 'https');
        }
    }

    return config;
}
Creates a new object with all the BrowserSync options.

@param  {object} loconfig        - The project configset.
@param  {object} loconfig.paths  - The paths options.
@param  {object} loconfig.server - The server options.
@return {object} Returns the server options.