Using Nitro with Sidequest, exporting functions to be used by external dependency? #3740
Closed
drewbaker
started this conversation in
Help Wanted
Replies: 1 comment
-
|
I went down an insane rabbit hole to figure this out. sidequestjs/sidequest#125 (comment) |
Beta Was this translation helpful? Give feedback.
0 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to use Nitro with Sidequest for queues.
Sidequest has to do some specific importing of the "job" files, as explained here:
https://docs.sidequestjs.com/jobs/manual-resolution#manual-job-resolution
The problem seems to be, that in my Nitro endpoints I also need to use these job files to enqueue the jobs in my code.
So, I think the thing that I need to be able to do is config Nitro's bundle process to export these jobs in a way that they can be imported by Sidequest's init function. The job will also contain Nitro code (in my case, using $fetch() and Nitro utils).
So, is there a way to exporting functions out of Nitro that can then be used by an external dependency (in this case Sidequest)?
I suspect the answer is some sort of rollup or Nitro config, like
serverAssetsor something else like that. Any ideas?I have a support issue on Sidequest about it here:
sidequestjs/sidequest#125
Beta Was this translation helpful? Give feedback.
All reactions