Replies: 1 comment
-
Have you double checked that, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
I have a problem with a timeout during the build on my VPS machine.
About VPS: VPS 2 vCPU
Is this enoguht for stack strapi + nextjs + docker?
Strapi API Error (header): TypeError: fetch failed at async s (.next/server/chunks/950.js:1:25171) at async A (.next/server/chunks/950.js:1:36232) { [cause]: [Error: read ECONNRESET] { errno: -104, code: 'ECONNRESET', syscall: 'read' } } Strapi API Error Blog: TypeError: fetch failed at async r (.next/server/app/blog/[slug]/page.js:1:139687) at async p (.next/server/app/page.js:1:724) { [cause]: [Error: read ECONNRESET] { errno: -104, code: 'ECONNRESET', syscall: 'read' } } Strapi API Error (homepage): TypeError: fetch failed at async i (.next/server/chunks/6.js:24:19663) at async p (.next/server/app/page.js:1:724) { [cause]: [Error: read ECONNRESET] { errno: -104, code: 'ECONNRESET', syscall: 'read' } } Strapi API Error (footer-bottom): TypeError: fetch failed at async s (.next/server/chunks/950.js:1:25171) at async A (.next/server/chunks/950.js:1:36232) { [cause]: [Error: read ECONNRESET] { errno: -104, code: 'ECONNRESET', syscall: 'read' } } Strapi API Error (footer): TypeError: fetch failed at async s (.next/server/chunks/950.js:1:25171) at async A (.next/server/chunks/950.js:1:36232) { [cause]: [Error: read ECONNRESET] { errno: -104, code: 'ECONNRESET', syscall: 'read' } } Strapi API Error (homepage): TypeError: fetch failed at async i (.next/server/chunks/6.js:24:19663) at async Module.l (.next/server/app/page.js:1:506) { [cause]: [Error: read ECONNRESET] { errno: -104, code: 'ECONNRESET', syscall: 'read' } }
I have a problem with a fetch, timeout makes me a problem, how to increase timeout?
`const nextConfig: NextConfig = {
env: {
STRAPI_API_TOKEN: process.env.STRAPI_API_TOKEN || "",
STRAPI_CONTENT: process.env.STRAPI_CONTENT || "",
GOOGLE_MAP_KEY: process.env.GOOGLE_MAP_KEY || "",
},
experimental: {
turbo: {
rules: {
".svg": {
loaders: ["@svgr/webpack"],
as: ".tsx",
},
},
},
},
images: {
remotePatterns: [
},
staticPageGenerationTimeout: 1000, // this not helping!
output: "standalone",
};`
Authorization:
Bearer ${process.env.STRAPI_API_TOKEN}`,},
next: { revalidate: 3600, tags: [slug] },
});
if (!response.ok) {
`
Next and React versions:
"next": "^15.2.2", "react": "^19.0.0",
Any idea? How to increase the timeout, where?
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions