Skip to content

Commit 0b71e9a

Browse files
committed
chore: tune for test server
1 parent beee87f commit 0b71e9a

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

.changeset/many-dolls-trade.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@quassel/frontend": patch
3+
"@quassel/backend": patch
4+
---
5+
6+
Tune for test server

apps/backend/mikro-orm.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,11 @@ export default defineConfig({
1818
metadataProvider: TsMorphMetadataProvider,
1919
extensions: [Migrator, SeedManager],
2020
migrations: {
21+
path: "./db/migrations",
2122
pathTs: "./db/migrations",
2223
},
2324
seeder: {
25+
path: "./db/seeds",
2426
pathTs: "./db/seeds",
2527
},
2628
});

apps/backend/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ async function bootstrap() {
3434

3535
SwaggerModule.setup("api", app, document);
3636

37-
await app.listen({ port: configService.get("port") });
37+
await app.listen({ host: "0.0.0.0", port: configService.get("port") });
3838
}
3939
bootstrap();

apps/frontend/src/stores/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import createClient from "openapi-react-query";
33
import type { paths } from "../api.gen";
44

55
const fetchClient = createFetchClient<paths>({
6-
baseUrl: "http://localhost:3000",
6+
baseUrl: "https://api.test.quassel.ch",
77
credentials: "include",
88
});
99
export const $api = createClient(fetchClient);

0 commit comments

Comments
 (0)