|
4 | 4 | "globalEnv": ["NODE_ENV"], |
5 | 5 | "tasks": { |
6 | 6 | "dev": { |
| 7 | + "dependsOn": ["build-blog-data"], |
7 | 8 | "cache": false, |
8 | 9 | "persistent": true, |
9 | 10 | "env": [ |
|
24 | 25 | ] |
25 | 26 | }, |
26 | 27 | "build": { |
27 | | - "dependsOn": ["^build"], |
| 28 | + "dependsOn": ["build-blog-data", "^build"], |
28 | 29 | "inputs": [ |
29 | 30 | "{app,components,hooks,i18n,layouts,middlewares,pages,providers,types,util}/**/*.{ts,tsx}", |
30 | 31 | "{app,components,layouts,pages,styles}/**/*.css", |
|
133 | 134 | "inputs": ["{pages}/**/*.{mdx,md}"], |
134 | 135 | "outputs": ["public/blog-data.json"] |
135 | 136 | }, |
| 137 | + "cloudflare:build:worker": { |
| 138 | + "dependsOn": ["build-blog-data"], |
| 139 | + "inputs": [ |
| 140 | + "{app,components,hooks,i18n,layouts,middlewares,pages,providers,types,util}/**/*.{ts,tsx}", |
| 141 | + "{app,components,layouts,pages,styles}/**/*.css", |
| 142 | + "{next-data,scripts,i18n}/**/*.{mjs,json}", |
| 143 | + "{app,pages}/**/*.{mdx,md}", |
| 144 | + "*.{md,mdx,json,ts,tsx,mjs,yml}" |
| 145 | + ], |
| 146 | + "outputs": [".open-next/**"] |
| 147 | + }, |
136 | 148 | "cloudflare:preview": { |
| 149 | + "dependsOn": ["cloudflare:build:worker"], |
137 | 150 | "inputs": [ |
138 | 151 | "{app,components,hooks,i18n,layouts,middlewares,pages,providers,types,util}/**/*.{ts,tsx}", |
139 | 152 | "{app,components,layouts,pages,styles}/**/*.css", |
|
144 | 157 | "outputs": [".open-next/**"] |
145 | 158 | }, |
146 | 159 | "cloudflare:deploy": { |
| 160 | + "dependsOn": ["cloudflare:build:worker"], |
147 | 161 | "inputs": [ |
148 | 162 | "{app,components,hooks,i18n,layouts,middlewares,pages,providers,types,util}/**/*.{ts,tsx}", |
149 | 163 | "{app,components,layouts,pages,styles}/**/*.css", |
|
0 commit comments