diff --git a/dictation_client/package.json b/dictation_client/package.json
index aa8636a..1387fb2 100644
--- a/dictation_client/package.json
+++ b/dictation_client/package.json
@@ -2,9 +2,13 @@
"name": "client",
"private": true,
"version": "0.1.0",
+ "engines": {
+ "node": ">=18.0.0"
+ },
"scripts": {
"start": "vite",
"build": "tsc && vite build",
+ "build:prod": "tsc && vite build",
"build:local": "tsc && vite build && sh localdeploy.sh",
"preview": "vite preview",
"typecheck": "tsc --noEmit",
diff --git a/dictation_client/src/pages/SamplePage/index.tsx b/dictation_client/src/pages/SamplePage/index.tsx
index ef8c383..754ba8e 100644
--- a/dictation_client/src/pages/SamplePage/index.tsx
+++ b/dictation_client/src/pages/SamplePage/index.tsx
@@ -2,9 +2,7 @@ import React from "react";
const SamplePage: React.FC = () => (
- hello world!
-
- Dictation App Service Site
+
hello world!!
);
diff --git a/dictation_client/staticwebapp.config.json b/dictation_client/staticwebapp.config.json
new file mode 100644
index 0000000..e094983
--- /dev/null
+++ b/dictation_client/staticwebapp.config.json
@@ -0,0 +1,5 @@
+{
+ "navigationFallback": {
+ "rewrite": "/index.html"
+ }
+}
diff --git a/dictation_server/src/app.module.ts b/dictation_server/src/app.module.ts
index 0106524..eed0928 100644
--- a/dictation_server/src/app.module.ts
+++ b/dictation_server/src/app.module.ts
@@ -10,7 +10,7 @@ import { AuthController } from './features/auth/auth.controller';
@Module({
imports: [
ServeStaticModule.forRoot({
- rootPath: join(__dirname, '../../dictation_client', 'build'),
+ rootPath: join(__dirname, '..', 'build'),
}),
ConfigModule.forRoot({
envFilePath: ['.env.local', '.env'],
diff --git a/dictation_server/src/main.ts b/dictation_server/src/main.ts
index c9e3be2..5619f07 100644
--- a/dictation_server/src/main.ts
+++ b/dictation_server/src/main.ts
@@ -29,6 +29,8 @@ async function bootstrap() {
SwaggerModule.setup('api', app, document);
}
+ // TODO:検証のためポートを固定 後で直す
+ // await app.listen(process.env.PORT || 80);
await app.listen(process.env.PORT || 80);
}
bootstrap();