Back

Deploy Function

  • 0
  • Functions
Mickaël LT
22 Jan, 2024, 15:03

Hi, When I try to deploy my function i got this error : "remoteVariables is not defined" The function is already deploy on another project of my appwrite self hosted. I've just change the cli to get connected to the new project (It is for having dev / prod environnement). Any idea why I can't deploy my function ?

TL;DR
Title: Issue Deploying Function: "remoteVariables is not defined" Hi! When trying to deploy my function, I encountered the error "remoteVariables is not defined." The function is already deployed on another project in my self-hosted Appwrite. I recently changed the CLI to connect to a new project for development and production environments. Any idea why I can't deploy my function? The solution was to migrate the old appwrite.json file, replacing variables with "vars." This fixed the issue. However, it's worth noting that "variables" is no longer supported in appwrite.json, so "vars" should be used instead.
Mickaël LT
22 Jan, 2024, 15:14

Ok, I've just found an issue about it : https://github.com/appwrite/website/issues/387

Mickaël LT
22 Jan, 2024, 15:15

variables is not anymore supported in appwrite.json, you've to use "vars"

D5
22 Jan, 2024, 15:30

Does it got solved by doing that?

Mickaël LT
22 Jan, 2024, 15:51

Yes, just migrate my old appwrite.json replacing variables to use "vars" and now, it's fixed

D5
22 Jan, 2024, 15:58

@MickCan I mark this as solved then or do you need further assistance?

Mickaël LT
22 Jan, 2024, 16:00

no, it's solved

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more