質問編集履歴

1

firbease.json追加

2021/05/22 03:46

投稿

syoutarouim
syoutarouim

スコア4

test CHANGED
File without changes
test CHANGED
@@ -199,3 +199,55 @@
199
199
 
200
200
 
201
201
  ```
202
+
203
+
204
+
205
+
206
+
207
+ **firebase.json**
208
+
209
+ ```
210
+
211
+
212
+
213
+ {
214
+
215
+ "hosting": {
216
+
217
+ "public": ".next",
218
+
219
+ "ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
220
+
221
+ "rewrites": [
222
+
223
+ {
224
+
225
+ "source": "**",
226
+
227
+ "function": "nextjsFunc"
228
+
229
+ }
230
+
231
+ ]
232
+
233
+ },
234
+
235
+ "functions": {
236
+
237
+ "source": ".",
238
+
239
+ "predeploy": [
240
+
241
+ "npm --prefix \"$PROJECT_DIR\" install",
242
+
243
+ "npm --prefix \"$PROJECT_DIR\" run build"
244
+
245
+ ],
246
+
247
+ "runtime": "nodejs10"
248
+
249
+ }
250
+
251
+ }
252
+
253
+ ```