App working locally, but not in vercel

I have few assets in static folder of type *.se1
static > ephe > *.se1

In local, I’m able to set the path to ephe folder.

npm run dev > works fine
npm run build + preview > works fine
vercel preview > works fine

But when i deploy, it can’t find the folder.

Current behavior: Working fine in local as its able to find the path
Expected behavior: Works in vercel. Not sure if folder is skipped during build/ deployment.

“error”: "SwissEph file ‘sepl_18.se1’ not found in PATH ‘/ephe/’ \nusing Moshier eph.; "

Steps:

  1. npm install
  2. npm run build
  3. npm run preview

Optional: vercel preview

Vercel project details:
vercel.com /skota-techs-projects/astrosk-svelte
URL: https://astrosk-svelte.vercel.app/

Hi, @skota-tech! Welcome!

We have a community post that may be helpful for you to debug:

build and deploy looks good.
I can see ephe folder in static assets. But server code is unable to use it.

Is there a way to include this folder on server too.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.