I’m trying to solve this issue from last 2 days and was not able to solve that’s I thought connecting with forum will help me.
PROBLEM:-
I’m working on React Project built with Vite with React + TS template, and I’m also using redux toolkit. My application works looks fine when I run netlify dev or ntl dev
, I’m also logged in to netlify using netlify login or ntl login
And this error is produced when I hit my lambda function. Below I have attached screenshot of error, my folder structure and my lambda function code.
@hrishikesh please sir help me
export const handler = async (event) => {
try {
const subject = event.queryStringParameters.name || "World";
return {
statusCode: 200,
body: JSON.stringify({ message: `Hello ${subject}` }),
// // more keys you can return:
// headers: { "headerName": "headerValue", ... },
// isBase64Encoded: true,
};
} catch (error) {
return { statusCode: 500, body: error.toString() };
}
};