{"record":{"id":"6a0a8e5eb9abe291","repo":"vercel/next.js","slug":"warning-a-page-s-revalidate-option-was-set-to-mor","errorCode":null,"errorMessage":"Warning: A page's revalidate option was set to more than a year for ${req.url}. This may have been done in error.\nTo only run getStaticProps at build-time and not revalidate at runtime, you can set `revalidate` to `false`!","messagePattern":"Warning: A page's revalidate option was set to more than a year for (.+?)\\. This may have been done in error\\.\nTo only run getStaticProps at build-time and not revalidate at runtime, you can set `revalidate` to `false`!","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/next/src/server/render.tsx","lineNumber":1012,"sourceCode":"      }\n      if (typeof data.revalidate === 'number') {\n        if (!Number.isInteger(data.revalidate)) {\n          throw new Error(\n            `A page's revalidate option must be seconds expressed as a natural number for ${req.url}. Mixed numbers, such as '${data.revalidate}', cannot be used.` +\n              `\\nTry changing the value to '${Math.ceil(\n                data.revalidate\n              )}' or using \\`Math.ceil()\\` if you're computing the value.`\n          )\n        } else if (data.revalidate <= 0) {\n          throw new Error(\n            `A page's revalidate option can not be less than or equal to zero for ${req.url}. A revalidate option of zero means to revalidate after _every_ request, and implies stale data cannot be tolerated.` +\n              `\\n\\nTo never revalidate, you can set revalidate to \\`false\\` (only ran once at build-time).` +\n              `\\nTo revalidate as soon as possible, you can set the value to \\`1\\`.`\n          )\n        } else {\n          if (data.revalidate > 31536000) {\n            // if it's greater than a year for some reason error\n            console.warn(\n              `Warning: A page's revalidate option was set to more than a year for ${req.url}. This may have been done in error.` +\n                `\\nTo only run getStaticProps at build-time and not revalidate at runtime, you can set \\`revalidate\\` to \\`false\\`!`\n            )\n          }\n\n          revalidate = data.revalidate\n        }\n      } else if (data.revalidate === true) {\n        // When enabled, revalidate after 1 second. This value is optimal for\n        // the most up-to-date page possible, but without a 1-to-1\n        // request-refresh ratio.\n        revalidate = 1\n      } else if (\n        data.revalidate === false ||\n        typeof data.revalidate === 'undefined'\n      ) {\n        // By default, we never revalidate.\n        revalidate = false","sourceCodeStart":994,"sourceCodeEnd":1030,"githubUrl":"https://github.com/vercel/next.js/blob/89d017eac43ebf4742ed2b58d3c1373b70283b69/packages/next/src/server/render.tsx#L994-L1030","documentation":"Error \"Warning: A page's revalidate option was set to more than a year for ${req.url}. This may have been done in error.\nTo only run getStaticProps at build-time and not revalidate at runtime, you can set `revalidate` to `false`!\" thrown in vercel/next.js.","triggerScenarios":"Thrown at packages/next/src/server/render.tsx:1014 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Lower `revalidate` to a reasonable number of seconds, or set `revalidate: false` to only render at build time."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"89d017eac43ebf4742ed2b58d3c1373b70283b69","analyzedAt":"2026-08-19T02:10:13.922Z","contentChangedAt":"2026-08-19T02:10:13.922Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}