Skip to content

Commit fd4382e

Browse files
authored
update snippet
1 parent ecd8131 commit fd4382e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/integrations/static-file.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ import { Elysia } from 'elysia'
3030
import { staticPlugin } from '@elysia/static'
3131

3232
new Elysia()
33-
.use(staticPlugin, {
34-
path: 'public'
35-
})
33+
.use(staticPlugin({
34+
assets: 'public'
35+
}))
3636
.listen(8080)
3737
```

0 commit comments

Comments
 (0)