Skip to content

Commit 56ebe4f

Browse files
authored
Merge pull request #135 from wpengine/wp-env-backport-nextjs-apollo-filesystem-routing
chore: wp-env backport nextjs apollo filesystem routing
2 parents 1a584cc + 0b160cc commit 56ebe4f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+608
-5581
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
example-app/package-lock.json
2+
package-lock.json
3+
wp-env/__MACOSX
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"phpVersion": "7.4",
3+
"plugins": [
4+
"https://github.com/wp-graphql/wp-graphql/releases/latest/download/wp-graphql.zip",
5+
"https://github.com/AdvancedCustomFields/acf/releases/download/6.3.12/advanced-custom-fields-6.3.12.zip",
6+
"https://github.com/wp-graphql/wpgraphql-acf/releases/latest/download/wpgraphql-acf.zip"
7+
],
8+
"config": {
9+
"WP_DEBUG": true,
10+
"SCRIPT_DEBUG": false,
11+
"GRAPHQL_DEBUG": true,
12+
"WP_DEBUG_LOG": true,
13+
"WP_DEBUG_DISPLAY": false,
14+
"SAVEQUERIES": false
15+
},
16+
"mappings": {
17+
"db": "./wp-env/db",
18+
"wp-content/uploads": "./wp-env/uploads",
19+
".htaccess": "./wp-env/setup/.htaccess"
20+
},
21+
"lifecycleScripts": {
22+
"afterStart": "wp-env run cli -- wp plugin update wpgraphql-acf && wp-env run cli -- wp rewrite structure '/posts/%postname%/' && wp-env run cli -- wp rewrite flush"
23+
}
24+
}
Lines changed: 107 additions & 0 deletions

examples/nextjs-pages-router/apollo-client-filesystem-routing/.gitignore renamed to examples/next/apollo-client-filesystem-routing/example-app/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,4 @@ yarn-error.log*
3939
# typescript
4040
*.tsbuildinfo
4141
next-env.d.ts
42+
package-lock.json

examples/nextjs-pages-router/apollo-client-filesystem-routing/eslint.config.mjs renamed to examples/next/apollo-client-filesystem-routing/example-app/eslint.config.mjs

File renamed without changes.

examples/nextjs-pages-router/apollo-client-filesystem-routing/jsconfig.json renamed to examples/next/apollo-client-filesystem-routing/example-app/jsconfig.json

File renamed without changes.

examples/nextjs-pages-router/apollo-client-filesystem-routing/next.config.mjs renamed to examples/next/apollo-client-filesystem-routing/example-app/next.config.mjs

File renamed without changes.

examples/nextjs-pages-router/apollo-client-filesystem-routing/package.json renamed to examples/next/apollo-client-filesystem-routing/example-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "apollo-client-filesystem-routing",
2+
"name": "apollo-client-filesystem-routing-example-app",
33
"version": "0.1.0",
44
"private": true,
55
"scripts": {

examples/nextjs-pages-router/apollo-client-filesystem-routing/postcss.config.mjs renamed to examples/next/apollo-client-filesystem-routing/example-app/postcss.config.mjs

File renamed without changes.

examples/nextjs-pages-router/apollo-client-filesystem-routing/public/favicon.ico renamed to examples/next/apollo-client-filesystem-routing/example-app/public/favicon.ico

File renamed without changes.

0 commit comments

Comments
 (0)