s☻d
s☻d
TTCTheo's Typesafe Cult
Created by s☻d on 7/2/2023 in #questions
Vercel Lambda 405/413 error (large payload)
I have a api route which can potentially return a large amount of data back depending on who calls it, this occasionally leads to a 413/405 error: [ERROR] [1688280447665] LAMBDA_RUNTIME Failed to post handler success response. Http response code: 413. My route currently has
export const config = {
api: {
responseLimit: '8mb',
},
}
export const config = {
api: {
responseLimit: '8mb',
},
}
But I am unsure that is really doing anything to help/adverse the situation.
2 replies
TTCTheo's Typesafe Cult
Created by s☻d on 6/25/2023 in #questions
NextJS serverless limits
3 replies
TTCTheo's Typesafe Cult
Created by s☻d on 6/25/2023 in #questions
What would the best approach be to have a website that can be translated for different countries?
I have a site that is gaining some traction from all over the globe, right now all my text content is english. How would I ensure its translatable for all users?
12 replies
TTCTheo's Typesafe Cult
Created by s☻d on 6/24/2023 in #questions
NextJS 405 response (Exceeding response size limit)
Hi. I have a quick question on the best way to move forward for one of my api routes. I'm making a post request to one of my api routes ./feed which then makes several post requests and returns some data. Occasionally this data is very large. As a result sometimes nextjs throws a 405 error at me and doesnt let the data get fetched properly. I saw that on https://nextjs.org/docs/messages/api-routes-response-size-limit, the advice was to turn off response Limit, however I was wondering if that would only affect that single route, or my entire project. Will my project still stay serverless?
7 replies
TTCTheo's Typesafe Cult
Created by s☻d on 6/21/2023 in #questions
dumb async questions
Hi, I never really was able to deeply await promises and async functions. I have a couple of questions on error handling. (axios) How can I save a variable from an async get or post using .then on the top scope. Is it possible to error handle an await statement instead of it always crashing my run
5 replies