I would like to add my JS code to an existing code in Compute Service JS.
my code is an index.js file that fetch the request, takes some metadata about the request and the response, and returns the response back.
can I do it?
if yes, what is the better way to do it? add my code to npm and just import the package?
Thanks for reaching out!
I don’t think you’d need to package your code up into a separate NPM package unless you are hoping other users of the Fastly platform would install and use the package.