Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple functions within an App share same utilities. #7

Open
hammadarshad1 opened this issue Dec 20, 2023 · 2 comments
Open

Multiple functions within an App share same utilities. #7

hammadarshad1 opened this issue Dec 20, 2023 · 2 comments

Comments

@hammadarshad1
Copy link

Is there a way for multiple functions within the DO (DigitalOcean) App to share the same utils/constants and requirements file?

The issue I'm facing is that every time I create a new function, I have to redefine all the constants, package requirements, and even the build.sh file. This repetition is becoming cumbersome for me.

Here is my folder structure:

image
@rabbah
Copy link

rabbah commented Dec 22, 2023

You could try using a shared lib directory https://docs.digitalocean.com/products/functions/reference/build-process/

@codespearhead
Copy link

@hammadarshad1 Did the above solution work? If so, can you close this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants