Skip to content

Services pattern #47

@0xZakk

Description

@0xZakk

Y'all implemented this really well!

let servicePath
if (document.location.hostname === 'localhost') {
servicePath = 'http://localhost:3001'
} else {
servicePath = 'https://cool-beans-api.herokuapp.com'
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions