Post

Is there a way to ensure certain files that aren't in the app tree make it into the @svelte.dev Kit build output? I have a background process that pulls a file from a relative import. Works fine in dev. Can't find the file in prod :/

Could try a cp this/file.js build/file.js in the build script or have it in the static/ folder Or If you’re running crons on a node server have an ingest API endpoint and run the crons against it?

I like the first idea. I came across the second idea on a forum, and it was interesting. Sounds like a fun one, but I don't want to expose an endpoint that can trigger the script. Thanks for the tips.

0 reposts1 like

No replies yet.