Skip to content

Commit ef56c56

Browse files
committed
📘 feat: 0.4
1 parent e11b564 commit ef56c56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/blog/elysia-04.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ This allows you to declaratively for a specific conditional, for example excludi
106106
```ts
107107
const isProduction = process.env.NODE_ENV === 'production'
108108

109-
const app = new Elysia().if(isProduction, (app) =>
109+
const app = new Elysia().if(!isProduction, (app) =>
110110
app.use(swagger())
111111
)
112112
```

0 commit comments

Comments
 (0)