
Message: After creating a function using the Functions API, the domain is not created automatically, even though the documentation says a domain should be created after each deployment.
What I did:
Connected GitHub, got the installationId and repositoryId.
Successfully uploaded the function and deployed it.
However, the domain was not created, I had to create it manually.
I also tried uploading via file (Manual), and again the domain was not created.
I checked that when I create a function via the UI, the domain is created automatically. But when using the API, I need to create the domain manually and then redeploy.
My question: Is this the expected behavior, or am I doing something wrong in my code? If this is how it’s supposed to work, that’s fine — I’ll just create the domain manually.

Code:
const myFunc = await functions.create({
functionId: ID.unique(),
name: "My Function 3",
runtime: "node-18.0",
execute: [],
scopes: ["users.read"],
installationId: "",
providerRepositoryId: "",
providerBranch: "main",
providerRootDirectory: "./",
providerSilentMode: false,
entrypoint: "src/index.js",
commands: "npm install",
})
const myDeployment = await functions.createVcsDeployment({
functionId: myFunc.$id,
type: "branch",
reference: "main",
activate: true, // optional
});
Recommended threads
- Function Cannot be deleted
I think this shouldn't happen!
- CORS Issue | DID NOT FIND ANYTHING ON DO...
Hello There, I get the Error ```Access to fetch at 'https://fra.cloud.appwrite.io/v1/account' from origin 'http://localhost:5173' has been blocked by CORS poli...
- Database not found
Even though I can clearly access and update fields in my DB through the console, when my updating through the Android SDK it throws this error { "message": ...
