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:
parent
e9e8080a81
commit
b781f8860c
2 changed files with 6 additions and 1 deletions
5
.changeset/seven-elephants-suffer.md
Normal file
5
.changeset/seven-elephants-suffer.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Update wrong error message
|
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue