novuhq / novu

Open-Source Notification Platform. Embeddable Notification Center, E-mail, Push and Slack Integrations.
https://novu.co
Other
35.43k stars 3.92k forks source link

feat(novu): Add `--headless` flag to prevent automatic browser open with `npx novu dev` command #7016

Closed rifont closed 4 days ago

rifont commented 1 week ago

What changed? Why was the change needed?

Docs PR: https://github.com/novuhq/docs/pull/735

Screenshots

Demonstration of with/without --headless flag

https://github.com/user-attachments/assets/b1e00048-d972-4ae1-b306-e42df22fc163

Updated -h command docs

Usage: novu dev [-p <port>] [-r <route>] [-o <origin>] [-d <dashboard-url>] [-sp <studio-port>] [-t <url>] [-H]

Start Novu Studio and a local tunnel

  Running the Bridge application on port 4000:
  (e.g., npx novu@latest dev -p 4000)

  Running the Bridge application on a different route:
  (e.g., npx novu@latest dev -r /v1/api/novu)

  Running with a custom tunnel:
  (e.g., npx novu@latest dev --tunnel https://my-tunnel.ngrok.app)

Options:
  -p, --port <port>          The local Bridge endpoint port (default: "4000")
  -r, --route <route>        The Bridge endpoint route (default: "/api/novu")
  -o, --origin <origin>      The Bridge endpoint origin
  -d, --dashboard-url <url>  The Novu Cloud Dashboard URL (default:
                             "https://dashboard.novu.co")
  -sp, --studio-port <port>  The Local Studio server port (default: "2022")
  -t, --tunnel <url>         Self hosted tunnel. e.g.
                             https://my-tunnel.ngrok.app
  -H, --headless             Run the Bridge in headless mode without opening the
                             browser (default: false)
  -h, --help                 display help for command

Docs PR: https://github.com/novuhq/novu/pull/7021

Expand for optional sections ### Related enterprise PR ### Special notes for your reviewer
netlify[bot] commented 1 week ago

Deploy Preview for novu-stg-vite-dashboard-poc ready!

Name Link
Latest commit 97cdc7adf2f931cc63e5fd09d72d381c69159bc5
Latest deploy log https://app.netlify.com/sites/novu-stg-vite-dashboard-poc/deploys/673a75af419b93000817f8c8
Deploy Preview https://deploy-preview-7016--novu-stg-vite-dashboard-poc.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

pkg-pr-new[bot] commented 6 days ago

Open in Stackblitz

pnpm add https://pkg.pr.new/novuhq/novu@7016

commit: 97cdc7a