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 :/
Post
You can probably use the `read` function depending on how you are reading the file svelte.dev/docs/kit/$ap... Another option would be to manually copy the file after the build
svelte.dev$app/server • SvelteKit Docs$app/server • SvelteKit documentation
That's a good idea. I had landed on something somewhat similar by moving all the cron tasks to a completely separate app, rather than shoehorning them into svelte. In any case, that read function was a great tip. Thanks for all these ideas
0 reposts0 likes
No replies yet.