Forum Academy Marketplace Showcase Pricing Features

Run_server function on server side plugins

Hi, I’m building a server side plugin and can see the function run_server should be called when running server side code. This is kind of confusing me. If I have selected server side in the action general properties, does this mean the entire script is run server side? or do I need to call the run_server function to run script server side. Would someone also be able to provide a basic example of how to call the function if this is the case?

Thanks

The entire code is ran in a NodeJS environment.

2 Likes

No, Bubble does that. You are basically implementing a handler that’s invoked when the action is run (within the context of a workflow).

The docs might contain some helpful info to get started.

-Steve

1 Like

@jared.gibb @sudsy Thanks for clearing that up, it makes sense now :grinning: