Rank 3: Container
Could anyone please guide how to enable mock numbers feature in self hosted??
Votes
0
Replies
10
Participants
4
Messages
11
Rank 3: Container
Could anyone please guide how to enable mock numbers feature in self hosted??
Rank 3: Container
Any help here please?
what is not working? do you get an error? can you please share it?
Rank 3: Container
Mock numbers feature itself cannot be used ....
It is showing available on appwrite cloud..sign up for cloud to add mock numbers
yeah so its a cloud only feature 👍
Rank 3: Container
Ohh noo....we would require this feature compulsorily...is there any option to enable in self hosted or any other work around .. or can we request appwrite team for enabling this feature in self hosted in 1.8???
You can tell the Console it's running on Cloud. IIRC, the API endpoints are all there and work - it's just disabled in the Console.
It should just be a matter of changing an envvar
I don't know what other repercussions that may have, though
here is the patch for appwrite-console to enable mock number
docker exec appwrite-console sh -c '
FILE=$(grep -R "supportsMockNumbers" -n /usr/share/nginx/html/console/_app/immutable | grep nodes | cut -d: -f1 | head -n1)
if [ -z "$FILE" ]; then
echo ":x: Could not locate console JS bundle. Patch halted."
exit 1
fi
echo "[+] Target: $FILE"
# Check if already patched
if grep -q "v=false" "$FILE"; then
echo ":white_check_mark: Already patched. No action taken."
exit 0
fi
echo "[+] Patching assignment (v = ... supportsMockNumbers → v = false)"
sed -i "s/v *= *[^;]*supportsMockNumbers[^;]*/v=false/" "$FILE"
# Remove precompressed cached bundle to force use of modified JS
rm -f "$FILE.br" "$FILE.gz"
echo "[+] Patch applied. Restarting console..."
'
docker restart appwrite-console >/dev/null && echo ":white_check_mark: Done. HARD refresh your browser (Ctrl+Shift+R / Cmd+Opt+R)"
docker commit appwrite-console appwrite-console:1.7.4
Rank 3: Container
Does it work for latest 1.8.0 also right?