Contentful issues when deploy

Hello, i have an error 500 when i try to get content from my cms contentful.
all env var are working good.
also my project working good on local.

import contentful from 'contentful';
import { CONTENTFUL_SPACE_ID, CONTENTFUL_ACCESS_TOKEN } from '$env/static/private';

export const client = contentful.createClient({
    // This is the space ID. A space is like a project folder in Contentful terms
    space: CONTENTFUL_SPACE_ID,
    // This is the access token for this space. Normally you get both ID and the token in the Contentful web app
    accessToken: CONTENTFUL_ACCESS_TOKEN
});
``

also i'm using sveltekit
Was this page helpful?