darblex/price-compare-israel/serverless-cloud-deploy

Claude Code and agent skill by darblex/price-compare-israel

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Install

npx vskill@latest install darblex/price-compare-israel/serverless-cloud-deploy

SKILL.md

The same SKILL.md was published earlier as darblex/price-compare-israel/serverless-cloud-deploy.

Serverless & Cloud Deployment

Capabilities

Deploy and manage applications on serverless platforms, edge networks, and cloud services. Vercel, Railway, Cloudflare Workers, AWS Lambda, Docker, and CI/CD pipelines.

Vercel Deployment

Configuration
json
// vercel.json
{
"buildCommand": "npm run build",
"outputDirectory": ".next",
"framework": "nextjs",
"regions": ["fra1"],
"functions": {
"api/**/*.ts": { "maxDuration": 30 }
},
"headers": [
{
"source": "/(.*)",
"headers": [
{ "key": "X-Frame-Options", "value": "DENY" },
{ "key": "X-Content-Type-Options", "value": "nosniff" },
{ "key": "Referrer-Policy", "value": "strict-origin-when-cross-origin" }
]
}
],
"redirects": [
{ "source": "/old-path", "destination": "/new-path", "permanent": true }
],
"rewrites": [
{ "source": "/api/:path*", "destination": "https://api.backend.com/:path*" }
]
}
CLI Commands
bash
# Deploy
vercel # Preview deployment
vercel --prod # Production deployment
# Environment variables
vercel env add SECRET_KEY production
vercel env pull .env.local
# Domains
vercel domains add mydomain.com
vercel domains inspect mydomain.com
# Logs
vercel logs https://myapp.vercel.app --follow

Railway Deployment

railway.toml
toml
[build]
builder = "nixpacks"
buildCommand = "npm run build"
[deploy]
startCommand = "npm start"
healthcheckPath = "/health"
healthcheckTimeout = 100
restartPolicyType = "on_failure"
restartPolicyMaxRetries = 3
[service]
internalPort = 3000

Cloudflare Workers

Worker Script
javascript
export default {
async fetch(request, env) {
const url = new URL(request.url);
// API routing
if (url.pathname.startsWith('/api/')) {
return handleAPI(request, env);
}
// Static assets from KV
const asset = await env.ASSETS.get(url.pathname);
if (asset) {
return new Response(asset, {
headers: { 'Content-Type': getContentType(url.pathname) },
});
}
return new Response('Not Found', { status: 404 });
},
};
async function handleAPI(request, env) {
// D1 database query
const results = await env.DB.prepare(
'SELECT * FROM users WHERE id = ?'
).bind(userId).first();
return Response.json(results);
}

Docker

Multi-stage Dockerfile (Node.js)
dockerfile
# Build stage
FROM node:22-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci --only=production
COPY . .
RUN npm run build
# Production stage
FROM node:22-alpine AS runner
WORKDIR /app
RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 appuser
COPY --from=builder /app/dist ./dist
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/package.json ./
USER appuser
EXPOSE 3000
CMD ["node", "dist/index.js"]
docker-compose.yml (Full Stack)
yaml
version: '3.8'
services:
app:
build: .
ports:
- "3000:3000"
environment:
- DATABASE_URL=postgresql://user:pass@db:5432/app
- REDIS_URL=redis://redis:6379
depends_on:
db:
condition: service_healthy
redis:
condition: service_started
restart: unless-stopped
db:
image: postgres:16-alpine
environment:
POSTGRES_DB: app
POSTGRES_USER: user
POSTGRES_PASSWORD: pass
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U user -d app"]
interval: 5s
timeout: 5s
retries: 5
redis:
image: redis:7-alpine
volumes:
- redisdata:/data
nginx:
image: nginx:alpine
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- ./certs:/etc/nginx/certs
depends_on:
- app
volumes:
pgdata:
redisdata:

CI/CD Pipelines

GitHub Actions
yaml
# .github/workflows/deploy.yml
name: Deploy
on:
push:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with: { node-version: 22 }
- run: npm ci
- run: npm test
- run: npm run lint
deploy:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: amondnet/vercel-action@v25
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
vercel-args: '--prod'

Domain & DNS Setup

# Typical DNS records for web app
A @ 76.76.21.21 # Vercel
CNAME www cname.vercel-dns.com # Vercel
CNAME api your-api.railway.app # Railway API
MX @ 10 mx1.emailprovider.com
TXT @ v=spf1 include:_spf.google.com ~all
CNAME _dkim dkim.emailprovider.com
TXT _dmarc v=DMARC1; p=quarantine

Monitoring & Observability

ToolPurposeFree Tier
SentryError tracking5K events/mo
BetterStackUptime monitoring10 monitors
PostHogAnalytics1M events/mo
Grafana CloudMetrics/logs10K series
AxiomLogging500GB ingest

SSL/TLS Checklist

  • [ ] HTTPS enforced (redirect HTTP → HTTPS)
  • [ ] HSTS header enabled
  • [ ] TLS 1.2+ only
  • [ ] Strong cipher suites
  • [ ] Certificate auto-renewal (Let's Encrypt)
  • [ ] CAA DNS record set

Cost Optimization

ResourceStrategy
ComputeServerless for variable traffic, reserved for steady
DatabaseConnection pooling, read replicas, query optimization
StorageCDN for static assets, S3 lifecycle rules
BandwidthCompression, caching headers, CDN edge
FunctionsMinimize cold starts, bundle size, execution time

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/darblex/price-compare-israel/serverless-cloud-deploy/badge)](https://verified-skill.com/skills/darblex/price-compare-israel/serverless-cloud-deploy)

Something wrong with this skill or its page? Tell us.