Skip to content

Commit 7652d6d

Browse files
committed
chore: add plugin to wp-env.json
1 parent 7626331 commit 7652d6d

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed
Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
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+
}

examples/next/webhooks-isr/example-app/src/pages/api/revalidate.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)