Hi,
In order to import functions/variables from a js file which are located on the public folder , you should use the following code:
import {functionName} from 'public/jsFileName.js';
Make sure to export the functions / variables. Note that files that are created on the public folder are exposed, therefore it’s not recommended to put there keys and other information which you don’t want to be exposed.
I recommend following the instructions of the article- Working with Javascript in Wix Code. For backend files, check out this article.
Good luck!
Tal.