Skip to content

Commit

Permalink
docs(README): update EnvEditor example
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Oct 16, 2023
1 parent 1a918f7 commit 1855648
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ env.get('NODE_ENV') // is unknown, hence a string or undefined
The Env editor can be used to edit dot-env files and persist changes on disk. Only the `.env` and `.env.example` files are updated (if exists).

```ts
import { EnvEditor } from '@adonisjs/env'
import { EnvEditor } from '@adonisjs/env/editor'

const editor = await EnvEditor.create(new URL('./', import.meta.url))
editor.add('PORT', 3000)
Expand Down

0 comments on commit 1855648

Please sign in to comment.