Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

As a new user I don't know how to invoke my functions when served with ntl dev #3618

Closed
lukasholzer opened this issue Nov 10, 2021 · 1 comment · Fixed by #3646
Closed

As a new user I don't know how to invoke my functions when served with ntl dev #3618

lukasholzer opened this issue Nov 10, 2021 · 1 comment · Fixed by #3646
Assignees
Labels
area: command: dev area: docs dev type: feature code contributing to the implementation of a feature and/or user facing functionality

Comments

@lukasholzer
Copy link
Collaborator

Is your feature request related to a problem? Please describe.

As a new user I don't know how I can invoke my functions when running with the ntl dev command

Describe the solution you'd like

I would expect something like this on startup by running: ntl dev

◈ Netlify Dev ◈
◈ Ignored general context env var: LANG (defined in process)
◈ No app server detected. Using simple static server
◈ Running static server from "build-reproductions/dist"
- ◈ Loaded function hello.
+ ◈ Loaded function hello available under: http://localhost:8888/.netlify/functions/hello 
◈ Functions server is listening on 58458

◈ Static server listening to 3999

   ┌─────────────────────────────────────────────────┐
   │                                                 │
   │   ◈ Server now ready on http://localhost:8888   │
   │                                                 │
   └─────────────────────────────────────────────────┘

Additional context

Furthermore it is hard to find this information somewhere, needed some while to stumble over: https://answers.netlify.com/t/how-do-you-access-functions/746

Can you submit a pull request?

Yes.

@lukasholzer lukasholzer added dev type: feature code contributing to the implementation of a feature and/or user facing functionality area: docs area: command: dev labels Nov 10, 2021
@joeyaiello
Copy link

Ack and good with this, seems like a reasonable thing to do to drive clarity, hopefully fairly cheap to implement as well.

@kodiakhq kodiakhq bot closed this as completed in #3646 Dec 21, 2021
kodiakhq bot added a commit that referenced this issue Dec 21, 2021
* feat: print function URL on first load (closes #3618)

* chore: fix test

* feat: use terminal-link to unclutter output on supported terminals

* fix: remove parens

* feat: use default fallback

* fix: formatting

* fix: right ordering

* fix: add missing deps

Co-authored-by: Netlify Team Account 1 <netlify-team-account-1@users.noreply.github.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: Erez Rokah <erezrokah@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: command: dev area: docs dev type: feature code contributing to the implementation of a feature and/or user facing functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants