Skip to content
Back

Mock numbers feature not working in self hosted

  • 0
  • 4
  • Self Hosted
Prateek Jain
14 Sep, 2025, 07:21

Could anyone please guide how to enable mock numbers feature in self hosted??

TL;DR
Mock numbers feature is disabled on self-hosted but available on Appwrite Cloud. To enable it on self-hosted, use the provided patch for Appwrite Console. It should work for the latest version 1.8.0 as well.
16 Sep, 2025, 04:18

Any help here please?

16 Sep, 2025, 05:54

what is not working? do you get an error? can you please share it?

16 Sep, 2025, 06:10

Mock numbers feature itself cannot be used .... It is showing available on appwrite cloud..sign up for cloud to add mock numbers

16 Sep, 2025, 06:13

yeah so its a cloud only feature πŸ‘

16 Sep, 2025, 06:17

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???

16 Sep, 2025, 13:39

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.

16 Sep, 2025, 13:39

It should just be a matter of changing an envvar

16 Sep, 2025, 13:39

I don't know what other repercussions that may have, though

8 Nov, 2025, 11:03

here is the patch for appwrite-console to enable mock number

TypeScript
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
1
10 Nov, 2025, 06:28

Does it work for latest 1.8.0 also right?

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