diff --git a/src/domain/headlessCms/__tests__/client.test.ts b/src/domain/headlessCms/__tests__/client.test.ts index 12cb8ea59..00490d1ba 100644 --- a/src/domain/headlessCms/__tests__/client.test.ts +++ b/src/domain/headlessCms/__tests__/client.test.ts @@ -9,8 +9,7 @@ const page = fakePage(); beforeEach(() => { const link = - import.meta.env.VITE_CMS_URI ?? - 'https://kukkuu.hkih.stage.geniem.io/graphql'; + process.env.VITE_CMS_URI || 'https://kukkuu.hkih.stage.geniem.io/graphql'; const headlessCms = graphql.link(link); server.use( headlessCms.query('page', (req, res, ctx) => {