Site will build locally but not on Cleavr

Hello,

I’m having an issue with one of my sites. It will deploy locally:
image

But trying to deploy on Cleavr I’m getting:

 error   Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at Response.json (file:///home/cleavr/7ezvwnylqkqi4pev3192.cleaver.rocks/releases/20220623114203496/node_modules/node-fetch/src/body.js:149:15)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Module.getItems (/src/utils/client.js:8:10)
    at async Module.getStaticPaths (/home/cleavr/7ezvwnylqkqi4pev3192.cleaver.rocks/releases/20220623114203496/src/pages/iconic-plants/[title].astro:1:3)
    at async callGetStaticPaths (file:///home/cleavr/7ezvwnylqkqi4pev3192.cleaver.rocks/releases/20220623114203496/node_modules/astro/dist/core/render/route-cache.js:18:20)
    at async getStaticPathsForRoute (file:///home/cleavr/7ezvwnylqkqi4pev3192.cleaver.rocks/releases/20220623114203496/node_modules/astro/dist/core/build/page-data.js:80:18)
    at async collectPagesData (file:///home/cleavr/7ezvwnylqkqi4pev3192.cleaver.rocks/releases/20220623114203496/node_modules/astro/dist/core/build/page-data.js:43:20)
    at async AstroBuilder.build (file:///home/cleavr/7ezvwnylqkqi4pev3192.cleaver.rocks/releases/20220623114203496/node_modules/astro/dist/core/build/index.js:73:34)
    at async AstroBuilder.run (file:///home/cleavr/7ezvwnylqkqi4pev3192.cleaver.rocks/releases/20220623114203496/node_modules/astro/dist/core/build/index.js:127:7)

Any ideas to why this could be?

Hello @Tom,

We’ll look into it and get back to you.

1 Like

Hello @Tom,

Can you please share with us the NodeJS, and NPM versions you’re using in your local environment?