Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
Zamelane committed Dec 9, 2024
1 parent 38ca018 commit b76ddea
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions apps/api/src/main.ts
Original file line number Diff line number Diff line change
@@ -43,6 +43,13 @@ const app = new Elysia()
origin: true
})
)
.use(
staticPlugin({
assets: 'src/uploads',
prefix: 'uploads',
staticLimit: 1_000_000
})
)
// сжатие...
.use(
compression({
@@ -59,13 +66,6 @@ const app = new Elysia()
contentSecurityPolicy: false
})
)
.use(
staticPlugin({
assets: 'src/uploads',
prefix: 'uploads',
staticLimit: 1_000_000
})
)
.use(routes)
.listen(port)

0 comments on commit b76ddea

Please sign in to comment.