// browsersync.ts
// Copyright (C) 2026 Robert Colbert <rob.colbert@openplatform.us>
// All Rights Reserved

import env from "./env.js";

import { Options as BrowserSyncOptions } from "browser-sync";

const options: BrowserSyncOptions = {
  proxy: {
    target: `https://${env.site.host}/`,
    ws: true,
  },
  host: env.site.domain,
  open: false,
  https: {
    key: env.https.keyFile,
    cert: env.https.crtFile,
  },
  port: 3000,
  cors: true,
  ui: {
    port: 3620,
  },
  notify: false,
  ghostMode: {
    clicks: false,
    forms: false,
    scroll: true,
  },
  logLevel: "info",
};

export default options;
