From 21ecc1db6b139882848fe573489ba83c442dec81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B9=AF=E6=9C=AC=20=E9=96=8B?= Date: Fri, 28 Jul 2023 07:53:48 +0000 Subject: [PATCH] =?UTF-8?q?Merged=20PR=20284:=20=E3=82=A8=E3=83=A9?= =?UTF-8?q?=E3=83=BC=E3=81=AE=E6=8C=99=E5=8B=95=E3=81=AB=E3=81=A4=E3=81=84?= =?UTF-8?q?=E3=81=A6=E7=A2=BA=E8=AA=8D=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## 概要 [Task2302: エラーの挙動について確認する](https://paruru.nds-tyo.co.jp:8443/tfs/ReciproCollection/fa4924a4-d079-4fab-9fb5-a9a11eb205f0/_workitems/edit/2302) - dockerfileまでいじった結果、develop動作確認で動かなくなっていたため、一旦静的ファイル配信部分だけ修正で問題なく動くかを確認する ## レビューポイント - 情報共有 ## 動作確認状況 - ローカルで確認 --- dictation_server/src/app.module.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/dictation_server/src/app.module.ts b/dictation_server/src/app.module.ts index a7b3f86..172cb56 100644 --- a/dictation_server/src/app.module.ts +++ b/dictation_server/src/app.module.ts @@ -43,8 +43,15 @@ import { TemplateFilesRepositoryModule } from './repositories/template_files/tem @Module({ imports: [ - ServeStaticModule.forRoot({ - rootPath: join(__dirname, '..', 'build'), + ServeStaticModule.forRootAsync({ + useFactory: () => + process.env.STAGE === 'local' + ? [ + { + rootPath: join(__dirname, '..', 'build'), + }, + ] + : [], }), ConfigModule.forRoot({ envFilePath: ['.env.local', '.env'],