Questions tagged [netlify-function]

Netlify functions is one of the services offered in the Netlify platform.

It uses AWS's serverless Lambda functions, but allows users to access them without an AWS account, and with management of the functions all done by Netlify. Netlify functions can be built with either JavaScript or Go.

Learn more about Netlify Functions and their abilities here.

115 questions
0
votes
2 answers

Why is my functional react component's state throwing TypeError: state is undefined?

I'm working on my first website in React, which is based off of a FaunaDB database. I'm using Netlify and Netlify functions to access my server-side code. When trying to to get all of the data from the database using react useEffect, useState, and…
0
votes
1 answer

public files not found on deployment

The static files in this code's src file are not found though they work locally just fine. What am I doing wrong in the deployment? the deployment HERE
0
votes
1 answer

How to insert params into netlify functions?

I have an input that sends an api call on submit to the unsplash API. I am trying to convert this into a netlify function but am not sure how to pass the params from the input into the function. I am trying to keep the API key hidden. I've never…
Ren
  • 171
  • 15
0
votes
1 answer

Stripe processed, now what?

I'm trying to build a serverless NuxtJS app, utilizing firebase for authentication, netlify for deployment (and functions) and stripe for payment. This whole payment-process and serverless functions on netlify is all new to me, so this might be a…
0
votes
1 answer

Netlify form - after submit it redirects to wrong page

I've got a Gatsby.js project that is ran from Netlify. For a contact form I'm using Netlify's api. The content is multilingual so I've got a contact page on /contact/ and /en/contact/ These obviously share the same code for a form. I've created a…
Tim
  • 861
  • 1
  • 12
  • 27
0
votes
1 answer

Using promises in async function

I'm trying to listen for a Stripe webhook call, then carry out some actions such as sending an email. My site is on Netlify and I've adapted some code I found in a tutorial: This works locally, but not when I run it as a Netlify function (basically…
neetso
  • 15
  • 4
0
votes
1 answer

Can I stop the default angular redirect behavior for specific endpoints?

I have an Angular app and serverless backend with Netlify all under the same domain. so: https://domain-name.com/* I have my API under the same domain: https://domain-name.com/api/v1/* Is there a way to stop Angular router behaviour that will…
Liam Clarke
  • 243
  • 4
  • 13
0
votes
0 answers

Is my HTML form sending to a Netlify lambda function correctly?

With a site running on Netlify, I'm trying to send an automatic reply using Mailgun to a site visitor who submits a form. I'm trying to follow this example to do it: https://gist.github.com/flatlinediver/0bdca4c2ae09d34d351d45230d3b2489 However,…
amatur
  • 317
  • 2
  • 11
0
votes
1 answer

Dialogflow in netlify lambda function

I'm trying to build a backend for dialogflow using netlify lambda function, as the website otherwise is supposed to be static-generated nuxt.js based landing page hosted there. Creating a simple resolution function works perfectly, reading and…
-1
votes
1 answer

CORS problem with netlify APP (API URL endpoint)

I just deployed my APP in netlify and it was working fine in development, I'm using netlify functions with faunadb, and when I run locally it all works. To make it work in production I just updated the API endpoint. To run locally I was using…
AgstAngelo
  • 51
  • 6
1 2 3 4 5 6 7
8