Skip to content

Customize or disable serve console message #2115

Closed
@chasegiunta

Description

@chasegiunta

What problem does this feature solve?

In non-SPA setups, the server may be operating on localhost:8080 and serving assets from there, but the site is being viewed on a separate domain my-php-site.test. In order for HMR to work correctly we enabled things like headers: { 'Access-Control-Allow-Origin': '*' } & set our baseUrl as

baseUrl: process.env.NODE_ENV === 'production'
  ? '/'
  : 'http://localhost:8080/',

This works great, except the dev will receive this message running serve:

App running at:
  - Local:   http://localhost:8080/http://localhost:8080/ 
  - Network: http://10.0.1.12:8080/http://localhost:8080/

What does the proposed API look like?

Potentially, if a serveMessage is provided, it will override any console messages.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions