diff --git a/.changeset/seven-elephants-suffer.md b/.changeset/seven-elephants-suffer.md new file mode 100644 index 000000000000..77480e9d7e18 --- /dev/null +++ b/.changeset/seven-elephants-suffer.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Update wrong error message diff --git a/packages/astro/src/actions/runtime/middleware.ts b/packages/astro/src/actions/runtime/middleware.ts index fcf3eb4aabed..de50b9cb544e 100644 --- a/packages/astro/src/actions/runtime/middleware.ts +++ b/packages/astro/src/actions/runtime/middleware.ts @@ -25,7 +25,7 @@ export const onRequest = defineMiddleware(async (context, next) => { if (context.request.method === 'POST') { console.warn( yellow('[astro:actions]'), - 'POST requests should not be sent to prerendered pages. If you\'re using Actions, disable prerendering with `export const prerender = "false".', + 'POST requests should not be sent to prerendered pages. If you\'re using Actions, disable prerendering with `export const prerender = false`.', ); } return next();