0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-03-10 23:01:26 -05:00

fix: update wrong action error message (#12279)

* fix: update wrong action error message

* add changeset

* Update .changeset/seven-elephants-suffer.md

---------

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
This commit is contained in:
Junseong Park 2024-10-22 18:25:30 +09:00 committed by GitHub
parent e9e8080a81
commit b781f8860c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Update wrong error message

View file

@ -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();