Replies: 1 comment 1 reply
-
Could you explain how you got background fncs working with netlify (there's no word on it in the guides) ? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Netlify background functions seem to run on a more traditional Node deployment that doesn't have access to some SvelteKit features. I have a single Netlify background function that needs to do database activity, etc.., and would like to use SvelteKit's
$app/dynamic/*
to simplify my usage of env variables.However, when I invoke the Netlify background function, I get the following error:
The error message recommends that I mark it as an external module in the
netlify.toml
file, but that just results in an error stating that the module could not be found during runtime.Any suggestions as to what I should look into?
Beta Was this translation helpful? Give feedback.
All reactions