verify-phone-sms 0.9.63 → 0.9.65

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,7 @@
1
1
  name = "sms-verification-docs"
2
+ # Wrangler deletes plaintext Variables set in the Cloudflare dashboard on every
3
+ # deploy unless keep_vars is set. Secrets are never deleted either way.
4
+ keep_vars = true
2
5
  main = "worker.js"
3
6
  compatibility_date = "2024-01-01"
4
7
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "verify-phone-sms",
3
- "version": "0.9.63",
3
+ "version": "0.9.65",
4
4
  "description": "SMS Phone Verification API using AWS SNS HTTP API with Hono server on Cloudflare Workers",
5
5
  "main": "src/verify-phone.ts",
6
6
  "type": "module",
package/scripts/deploy.sh CHANGED
@@ -31,11 +31,11 @@ deploy_docs() {
31
31
  bun run build:docs
32
32
 
33
33
  if [ "$ENVIRONMENT" = "production" ]; then
34
- cd docs && wrangler deploy --env production && cd ..
34
+ cd docs && wrangler deploy --keep-vars --env production && cd ..
35
35
  elif [ "$ENVIRONMENT" = "staging" ]; then
36
- cd docs && wrangler deploy --env staging && cd ..
36
+ cd docs && wrangler deploy --keep-vars --env staging && cd ..
37
37
  else
38
- cd docs && wrangler deploy && cd ..
38
+ cd docs && wrangler deploy --keep-vars && cd ..
39
39
  fi
40
40
  echo "✅ Docs deployment completed!"
41
41
  }
package/wrangler.toml CHANGED
@@ -1,4 +1,7 @@
1
1
  name = "sms-verification-api"
2
+ # Wrangler deletes plaintext Variables set in the Cloudflare dashboard on every
3
+ # deploy unless keep_vars is set. Secrets are never deleted either way.
4
+ keep_vars = true
2
5
  main = "src/index.ts"
3
6
  compatibility_date = "2024-01-01"
4
7
  compatibility_flags = ["nodejs_compat"]