---
number: 30291
slug: 30291-use-deno-json-configuration-file-in-edge-functions
published: 2024-11-05
discussion: https://github.com/orgs/supabase/discussions/30291
labels:
  - edge functions
page: https://supabase.com/changelog/30291-use-deno-json-configuration-file-in-edge-functions
---

# Use `deno.json` configuration file in Edge Functions

Each Edge Function can now have its own `deno.json` or `deno.jsonc` file to manage dependencies. You will need to deploy your functions using Supabase CLI version v1.215.0 or above to make use of this feature.

### How to use `deno.json`

Create a `deno.json` in your function's folder:

```jsonc
// supabase/functions/function-name/deno.json
{
  "imports": {
    "lodash": "https://cdn.skypack.dev/lodash"
  }
}
```

You can now use aliased imports in your source code:

```ts
// supabase/functions/function-name/index.ts
import lodash from 'lodash'
```

To test your function locally, run `supabase functions serve`. When you're ready, you can deploy it to hosted platform by running `supabase functions deploy function-name`

For more details, check the guide: https://supabase.com/docs/guides/functions/import-maps#using-denojson-recommended
