File tree Expand file tree Collapse file tree 6 files changed +13
-13
lines changed Expand file tree Collapse file tree 6 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 1
1
require ( 'dotenv' ) . config ( ) ;
2
- require ( './src/faust.config' ) ;
3
- const { getGqlUrl } = require ( '@faustjs/core' ) ;
4
2
5
3
/**
6
4
* @type {import("@gqty/cli").GQtyConfig }
@@ -9,12 +7,14 @@ const config = {
9
7
react : false ,
10
8
scalarTypes : { DateTime : 'string' } ,
11
9
introspection : {
12
- endpoint : getGqlUrl ( ) ,
10
+ endpoint : ` ${ process . env . NEXT_PUBLIC_WORDPRESS_URL } /graphql` ,
13
11
headers : { } ,
14
12
} ,
15
13
destination : './src/client/index.ts' ,
16
14
subscriptions : false ,
17
15
javascriptOutput : false ,
18
16
} ;
19
17
18
+ console . log ( `Using "${ config . introspection . endpoint } " to generate schema...` ) ;
19
+
20
20
module . exports = config ;
Original file line number Diff line number Diff line change 12
12
"wpe-build" : " next build"
13
13
},
14
14
"dependencies" : {
15
- "@faustjs/core" : " ^0.9 .0" ,
16
- "@faustjs/next" : " ^0.9 .0" ,
15
+ "@faustjs/core" : " ^0.10 .0" ,
16
+ "@faustjs/next" : " ^0.10 .0" ,
17
17
"next" : " ^11.1.1" ,
18
18
"normalize.css" : " ^8.0.1" ,
19
19
"react" : " ^17.0.2" ,
Original file line number Diff line number Diff line change 7
7
"@types/react" : " ^17.0.11" ,
8
8
"@types/react-dom" : " ^17.0.8" ,
9
9
"@types/react-router-dom" : " ^5.1.7" ,
10
- "@faustjs/core" : " ^0.9 .0" ,
11
- "@faustjs/react" : " ^0.9 .0" ,
10
+ "@faustjs/core" : " ^0.10 .0" ,
11
+ "@faustjs/react" : " ^0.10 .0" ,
12
12
"dotenv" : " ^10.0.0" ,
13
13
"express" : " ^4.17.1" ,
14
14
"normalize.css" : " ^8.0.1" ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @faustjs/core" ,
3
- "version" : " 0.9 .0" ,
3
+ "version" : " 0.10 .0" ,
4
4
"description" : " This module helps you use WordPress as a Headless CMS" ,
5
5
"main" : " dist/cjs/index.js" ,
6
6
"module" : " dist/mjs/index.js" ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @faustjs/next" ,
3
- "version" : " 0.9 .0" ,
3
+ "version" : " 0.10 .0" ,
4
4
"description" : " This module helps you use WordPress as a Headless CMS with Next.js" ,
5
5
"main" : " dist/cjs/index.js" ,
6
6
"module" : " dist/mjs/index.js" ,
81
81
"dependencies" : {
82
82
"@gqty/logger" : " ^1.0.2" ,
83
83
"@gqty/react" : " ^1.1.0" ,
84
- "@faustjs/core" : " ^0.9 .0" ,
85
- "@faustjs/react" : " ^0.9 .0" ,
84
+ "@faustjs/core" : " ^0.10 .0" ,
85
+ "@faustjs/react" : " ^0.10 .0" ,
86
86
"graphql" : " >=15.5" ,
87
87
"lodash" : " ^4.17.21"
88
88
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @faustjs/react" ,
3
- "version" : " 0.9 .0" ,
3
+ "version" : " 0.10 .0" ,
4
4
"description" : " This module helps you use WordPress as a Headless CMS with React" ,
5
5
"main" : " dist/cjs/index.js" ,
6
6
"module" : " dist/mjs/index.js" ,
76
76
},
77
77
"dependencies" : {
78
78
"@gqty/react" : " ^1.1.0" ,
79
- "@faustjs/core" : " ^0.9 .0" ,
79
+ "@faustjs/core" : " ^0.10 .0" ,
80
80
"gqty" : " ^1.0.3" ,
81
81
"graphql" : " >=15.5" ,
82
82
"lodash" : " ^4.17.21"
You can’t perform that action at this time.
0 commit comments