[reporter PaulieScanlon]: My bad, it was my mistake. Here's how i solved it [edge-functions/api/#import-maps](https://docs.netlify.com/edge-functions/api/#import-maps) At the root of my project i created a `deno.json`. E.g ```json { "imports": { "xata": "./src/xata.ts" } } ``` Then add the import_map path to `netlify.toml`. E.g ```toml [functions] deno_import_map = "deno.json" ``` Then i changed the import in my edge function. E.g ```diff + import { XataClient } from 'xata'; - import { XataClient } from '../../src/xata'; const xata = new XataClient({ apiKey - Netlify.env.get('XATA_API_KEY'), branch: Netlify.env.get('XATA_BRANCH'), }); export default async function handler() { try { const { records } = await xata.sql`SELECT * FROM users`; return new Response(JSON.stringify({ message: 'A-Ok!', data records }, null, 2), { status: 200, headers: { 'content-type': 'application/json' }, }); } catch (error) { return new Response({ status: 500, headers: { 'content-type': 'application/json' }, }); } } export const config = { path: '/get-all-users' }; ``` Works like a charm!

Context: Issue xataio/client-ts#1437 (closed, 8 comments): **Describe the bug** Hi all, not sure if this is a Xata thing, or a Netlify thing but, i'm trying to use Xata with Netlify Edge Functions. E.g ```typescript import { XataClient } from '../../src/xata'; const xata = new XataClient({ apiKey - Netlify.env.get('XATA_API_KEY'), branch: Netlify.env.get('XATA_BRANCH'), }); export default async function handler() { try { const { records } = await xata.sql`SELECT * FROM users`; return new Response(JSON.stringify({ message: 'A-Ok!', data records }, null, 2), { status: 200, headers: { 'content-type': 'ap