File tree Expand file tree Collapse file tree 2 files changed +22
-22
lines changed
examples/next/webhooks-isr
example-app/src/pages/api Expand file tree Collapse file tree 2 files changed +22
-22
lines changed Original file line number Diff line number Diff line change 11{
2- "phpVersion" : " 7.4" ,
3- "plugins" : [
4- " https://github.com/wp-graphql/wp-graphql/releases/latest/download/wp-graphql.zip" ,
5- ],
6- "config" : {
7- "WP_DEBUG" : true ,
8- "SCRIPT_DEBUG" : false ,
9- "GRAPHQL_DEBUG" : true ,
10- "WP_DEBUG_LOG" : true ,
11- "WP_DEBUG_DISPLAY" : false ,
12- "SAVEQUERIES" : false
13- },
14- "mappings" : {
15- "db" : " ./wp-env/db" ,
16- "wp-content/uploads" : " ./wp-env/uploads" ,
17- ".htaccess" : " ./wp-env/setup/.htaccess"
18- },
19- "lifecycleScripts" : {
20- "afterStart" : " wp-env run cli && wp-env run cli -- wp rewrite structure '/%postname%/' && wp-env run cli -- wp rewrite flush"
21- }
22- }
2+ "phpVersion" : " 7.4" ,
3+ "plugins" : [
4+ " https://github.com/wp-graphql/wp-graphql/releases/latest/download/wp-graphql.zip" ,
5+ " ../../../plugins/wp-graphql-headless-webhooks"
6+ ],
7+ "config" : {
8+ "WP_DEBUG" : true ,
9+ "SCRIPT_DEBUG" : false ,
10+ "GRAPHQL_DEBUG" : true ,
11+ "WP_DEBUG_LOG" : true ,
12+ "WP_DEBUG_DISPLAY" : false ,
13+ "SAVEQUERIES" : false
14+ },
15+ "mappings" : {
16+ "db" : " ./wp-env/db" ,
17+ "wp-content/uploads" : " ./wp-env/uploads" ,
18+ ".htaccess" : " ./wp-env/setup/.htaccess"
19+ },
20+ "lifecycleScripts" : {
21+ "afterStart" : " wp-env run cli && wp-env run cli -- wp rewrite structure '/%postname%/' && wp-env run cli -- wp rewrite flush"
22+ }
23+ }
Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ export default async function handler(req, res) {
3737 }
3838 console . log ( '[Webhook] Path to revalidate:' , path ) ;
3939
40- // Use Next.js res.revalidate API (available in Next.js 12.2+)
4140 await res . revalidate ( path ) ;
4241 console . log ( '[Webhook] Successfully revalidated path:' , path ) ;
4342
You can’t perform that action at this time.
0 commit comments