Skip to content

Commit 0a2acb1

Browse files
committed
add codegen before build
1 parent 6e505f0 commit 0a2acb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
},
1515
"homepage": "https://github.com/gregrickaby/nextjs-wordpress#readme",
1616
"scripts": {
17-
"build": "next build",
17+
"build": "npm run codegen && next build",
1818
"codegen": "graphql-codegen --config codegen.ts",
1919
"dev": "npm run codegen && rimraf .next && next dev",
2020
"format": "eslint --fix && prettier '**/*.{js,jsx,ts,tsx,md,html,css,json,yml}' --ignore-path .gitignore --cache --write",

0 commit comments

Comments
 (0)