feat: put db and uploads in same folder

This commit is contained in:
Elias Schneider
2022-10-12 00:38:38 +02:00
parent 759db40ac9
commit 80cdcda93c
9 changed files with 15 additions and 19 deletions

View File

@@ -7,7 +7,7 @@ async function bootstrap() {
app.useGlobalPipes(new ValidationPipe());
app.useGlobalInterceptors(new ClassSerializerInterceptor(app.get(Reflector)));
await fs.promises.mkdir("./uploads/_temp", { recursive: true });
await fs.promises.mkdir("./data/uploads/_temp", { recursive: true });
app.setGlobalPrefix("api");
await app.listen(8080);