Hello everyone,
I am trying to create a common utils file where I can store js functions that are common to many functions such as get a user, get a team, get a document, etc. The structure is something like this:
/functions/
├── /my-first-function/
│ ├── package.json
│ ├── src/
│ │ └── main.js
└── /common-modules/
└── utils/
├── package.json
└── index.js
I first try using github as is the default way that I am using to deploy functions but when I checked the deployment output the common-utils folder in the node_modules there is only an empty file. This is the log of the deployment
[12:09:07] [open-runtimes] Environment preparation started.
[12:09:07] [open-runtimes] Environment preparation finished.
[12:09:07] [open-runtimes] Build command execution started.
added 3 packages, and audited 5 packages in 5s
found 0 vulnerabilities
[12:09:14] [open-runtimes] Build command execution finished.
[12:09:14] [open-runtimes] Build packaging started.
[12:09:14] [open-runtimes] Build packaging finished.
[12:09:14] [open-runtimes] Build finished.
[12:09:18] [appwrite] Deployment finished.
Locally, I can build with out a problem the function and obtain the proper common-utils folder in the node_modules
To double check I have also tried with CLI with the same problem. I even build locally the pull function before pushing it This is the log of the deployment:
[12:29:11] [open-runtimes] Environment preparation started.
[12:29:11] [open-runtimes] Environment preparation finished.
[12:29:11] [open-runtimes] Build command execution started.
changed 1 package, and audited 5 packages in 5s
found 0 vulnerabilities
[12:29:16] [open-runtimes] Build command execution finished.
[12:29:16] [open-runtimes] Build packaging started.
[12:29:17] [open-runtimes] Build packaging finished.
[12:29:17] [open-runtimes] Build finished.
[12:29:21] [appwrite] Deployment finished.
Thank you in advance
Recommended threads
- Exception: Route not found when calling ...
I have self-hosted v1.8.1 and I am using an Appwrite function with node-appwrite v22. When I call the createVarcharColumn() in my server function I get this exc...
- Document created without ID in console
Hi team, I’m experiencing an issue in the Appwrite console. When I create a document in a collection via the **Collections UI**, the document gets created **wi...
- Guidance to safely upgrade Appwrite to l...
One of my old Flutter projects runs on a DO self-hosted Appwrite. Currently it's on appwrite: ^15.0.2 dart_appwrite: ^15.0.0 The app is live on the Play Stor...