Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🤖 Adjust Server Actions Body Size Limit #9599

Conversation

sentry-autofix[bot]
Copy link

@sentry-autofix sentry-autofix bot commented Apr 2, 2024

👋 Hi there! This PR was automatically generated 🤖

Triggered by tillman.elser@sentry.io

Fixes DOCS-6RK

The issue stems from an 'Invalid Server Actions request' error, likely caused by exceeding the request body size limit in a Next.js application. To resolve this, we need to configure the body size limit for Server Actions to accommodate larger requests.

The steps that were performed:

  1. Create or Update next.config.js
  2. Modify Server Actions to Use the Configured Limit

📣 Instructions for the reviewer which is you, yes you:

  • If these changes were incorrect, please close this PR and comment explaining why.
  • If these changes were incomplete, please continue working on this PR then merge it.
  • If you are feeling confident in my changes, please merge this PR.

This will greatly help us improve the autofix system. Thank you! 🙏

If there are any questions, please reach out to the AI/ML Team on #proj-autofix

🤓 Stats for the nerds:

Prompt tokens: 29713
Completion tokens: 1361
Total tokens: 31074

Copy link

vercel bot commented Apr 2, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sentry-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 2, 2024 8:34pm

next.config.js Outdated Show resolved Hide resolved
Copy link

codecov bot commented Apr 2, 2024

Bundle Report

Changes will decrease total bundle size by 9 bytes ⬇️

Bundle name Size Change
sentry-docs-server 6.11MB 0 bytes
sentry-docs-client 5.52MB 6 bytes ⬇️
sentry-docs-edge-server 618.05kB 3 bytes ⬇️

@@ -4,6 +4,10 @@ const { codecovWebpackPlugin } = require('@codecov/webpack-plugin');

/** @type {import('next').NextConfig} */
const nextConfig = {
serverRuntimeConfig: {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The default size limit is already 1MB and this is not the correct syntax to set it according to the docs and this line

The body size limit should live under experimental.bodySizeLimit

@getsantry
Copy link
Contributor

getsantry bot commented May 9, 2024

This pull request has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you add the label WIP, I will leave it alone unless WIP is removed ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

@getsantry getsantry bot added the Stale label May 9, 2024
@getsantry getsantry bot closed this May 17, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Jun 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants