Could anyone please guide how to enable mock numbers feature in self hosted??
Any help here please?
what is not working? do you get an error? can you please share it?
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 π
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
Does it work for latest 1.8.0 also right?
Recommended threads
- Function global variables
when i create a top-level global variable in go or bun how will it behave? is the heap getting renewed on every execution or could i do some kind of temp. cachi...
- sh: vite: Permission denied
When installing the vue starter template as site and then adding DaisyUI, i get the error `sh: vite: Permission denied`. I also got this issue (with a fresh tem...
- Clean install of 1.9.0 shows errors in a...
I just run a full clean install of Appwrite on my server following the Manual installation guide in the docs page. The console seems to work, visually there d...