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
- Appwrite-injected variables are not avai...
I am using rust-1.83 as a runtime and try to access APPWRITE_FUNCTION_API_ENDPOINT or APPWRITE_FUNCTION_API_KEY during runtime. Both are not set during my execu...
- OAuth Missing redirect URL
Hello all, on a Flutter mobile app with latest Appwrite dependency (25.4.0) I always got "Missing redirect URL" - "Your OAuth login flow is missing a proper red...
- relationships bug or error idk
hey every one, am using am using appwrite on a project and ran into a problem where by created a relationship and two way to be specific and it is stuck on proc...