115 questions
0
votes
0
answers
21
views
JavaScript dependencies not working with Netlify Deployment
I have a project which I am deploying on Netlify. When it is run locally using two packages pako and nbitfy to parse some nbt data, it works perfectly, however on the deployed site, it causes the ...
0
votes
1
answer
43
views
Netlify function returns empty axios response on deploy only
I created a netlify function to query data from an external api via an axios get request. The function runs fine when I try it locally with netlify dev. If I try out the deployed version it only gives ...
0
votes
0
answers
170
views
Calling netlify function from nuxt3 SSR
I've developed an application using Nuxt3, hosted it on Netlify, and incorporated Netlify Functions. Everything works smoothly when i set ssr: false, but when I opt for the default option ssr: true, i ...
1
vote
1
answer
428
views
Netlify serverless functions work on development server but not production
I’m just starting to explore the world of server less functions at Netlify, but I’ve run into a snag I just cant figure out. I have a function written to post an email to my mailchimp contact list. ...
1
vote
1
answer
42
views
How to delay a fetch script in netlify function?
I have tried different methods like setttimeout and for loop but the script wont fire.
exports.handler = async function (event, context, callback) {
const reqbody = JSON.parse(event.body);
try {
...
3
votes
0
answers
644
views
Installing prisma with vite-netlify project
In my project, I am trying to install prisma inorder to make a serverless function for registering with a mysql database (which located locally on my pc). So I follow these steps:
npm install prisma --...
1
vote
0
answers
207
views
Nextjs github actions deployment to netlify
I would like to deploy a Nextjs website (called enchanting-elf-d42f40 on netlify) using the CLI, through GitHub actions but for now, I’m still getting this error when I want to access it:
Page Not ...
0
votes
0
answers
250
views
Working SvelteKit server component results in console error
I'm using a +server.ts file to mask the path to a Netlify function. While the redirect and the function both work, I still get to see a console error, e.g. when clicking on a link to /download?get=...
-1
votes
1
answer
922
views
CORS problem with netlify APP (API URL endpoint) [closed]
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 ...
1
vote
0
answers
172
views
WebAssembly.instantiate is slower in Node.js
I am working on using WebAssembly in Node.js (Netlify Functions, which internally uses AWS Lambda).
The problem is that it takes as long as 24s for WebAssembly.instantiate to finish.
The size of the ....
0
votes
0
answers
667
views
How to delete old data in supabase
I have a supabase app and my database is filled with old data and i want to delete it using a scheduled netlify function how can i implement this? I want it to delete data that is more than a month ...
0
votes
1
answer
71
views
Where to find all WAF rules? is it possible to configure them apart from Headers?
In Netlify Security documentation, there is a schema about their architecture :
Where can I find all WAF rules ? is it possible to configure them (apart from Headers) ?
Can't see the rules in ...
2
votes
1
answer
837
views
Error when building Astro project to Netlify: The argument 'filename' must be a file URL object
I am trying to build an astro project to Netlify (dev) however I keep getting this error:
TypeError: The argument 'filename' must be a file URL object, file URL string, or absolute path string. ...
1
vote
0
answers
46
views
Where is the best place to put common (library) code for Netlify functions
Often I have code reused by multiple Netlify functions in the same project.
I know that anything within my /functions directory will become a function so I don't want to nest directories there. I ...
1
vote
0
answers
85
views
node-fetch & netlify function "Class extends value #<Object> is not a constructor or null"
netlify site name: https://liontime-api-redirect.netlify.app/
error image link
you can see this image when you open the site above too.
I built a proxy server with netlify function.
It worked well at ...
1
vote
2
answers
781
views
Additional (not imported) dependencies for Remix site deploy to Netlify required?
I'm currently trying to deploy a Remix App to Netlify and followed the steps described in the Netlify docs.
However, as soon as I try to deploy the site (netlify deploy), Netlify complains about some ...
1
vote
1
answer
491
views
Minimizing MongoDB connections in Netlify serverless functions
I've been converting a React app with a REST API to use Netlify's serverless functions instead, and it's working, but I'm noticing a lot of connections (hundreds) to my MongoDB Atlas database while it'...
1
vote
0
answers
123
views
is there any way to set context.callbackWaitsForEmptyEventLoop to false when using serverless-http and netlify-lambda
I am using serverless-http and netlify-lambda to use express to make serverless functions. Is there any way to asceses the context variable normally accusable when making a serverless function with ...
2
votes
3
answers
835
views
How to use Github API to revoke OAuth authentication?
Here is the code I'm using, but I keep getting a 403 error in response.
let username = "CLIENT_ID_GOES_HERE";
let password = "SECRET_GOES_HERE";
let basicAuth = Buffer.from(`${...
0
votes
1
answer
322
views
Netlify-lambda serve redirects from netlify.toml
I have a working netlify-lambda setup. I run netlify-lambda locally and not in the cloud. Upon running
netlify-lambda serve ./functions
the functions I have defined in the /functions folder are ...
1
vote
1
answer
1k
views
Why is Go project build failing on Netlify functions with "missing go.sum entry"?
I am trying to deploy a really simple Go function on Netlify functions.
I followed the guide, but the guide does not explain the Go setup very well.
I used the currently recommended way to do it, with ...
2
votes
3
answers
3k
views
Netlify functions not found on dev server
I have followed several blogs and questions related to the same problem I am having. It is exactly like this question. However, I am still having issues.
So, I am running netlify dev and trying to ...
0
votes
1
answer
200
views
Netlify background function returns after it (Done executing background function handler-background)
My code in local works fine, but in Netlify it doesnot. Iam not sure whats happening. The flow is I generate invoices using easy invoice package and trying to upload it to s3 in async. But my code ...
0
votes
2
answers
446
views
How Do You Configure Create React App to Work with Netlify Lambda Functions
I am trying to use netlify lambda functions with create react app, and it is breaking my site.
The repo was made by running npx create-react-app my-app-name, and is the standard create react app ...
3
votes
1
answer
1k
views
How to get the raw request body in a Netlify Function?
I'm developing a backend for an existing application which sends Gzipped data to an endpoint on Netlify Functions. However, I wasn't able to get the body as a Buffer instead of a string.
This means ...