replit-deploy-integration
Deploy Replit integrations to Vercel, Fly.io, and Cloud Run platforms. Use when deploying Replit-powered applications to production, configuring platform-specific secrets, or setting up deployment pipelines. Trigger with phrases like "deploy replit", "replit Vercel", "replit production deploy", "replit Cloud Run", "replit Fly.io".
- License 许可
- MIT
- 最近更新
- 2026-05-26
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- replit-deploy-integration
- author
- Jeremy Longshore <jeremy@intentsolutions.io>
- license
- MIT
- version
- 1.0.0
- description
- Deploy Replit integrations to Vercel, Fly.io, and Cloud Run platforms. Use when deploying Replit-powered applications to production, configuring platform-specific secrets, or setting up deployment pipelines. Trigger with phrases like "deploy replit", "replit Vercel", "replit production deploy", "replit Cloud Run", "replit Fly.io".
- allowed-tools
- Read, Write, Edit, Bash(vercel:*), Bash(fly:*), Bash(gcloud:*)
- compatible-with
- claude-code, codex, openclaw
03 SKILL.md 正文
Replit Deploy Integration
Overview
Deploy applications on Replit's hosting platform. Covers Replit Deployments (Static, Autoscale, Reserved VM), configuring .replit files, managing secrets, and setting up custom domains.
Prerequisites
- Replit account with Deployments enabled (Core or Teams plan)
- Application code in a Repl
- Custom domain (optional) with DNS access
- Replit CLI or web dashboard access
Instructions
Step 1: Configure .replit File
# .replit
run = "npm start"
entrypoint = "index.js"
[deployment]
run = ["sh", "-c", "npm start"]
deploymentTarget = "autoscale"
[nix]
channel = "stable-24_05"
[env]
NODE_ENV = "production"
PORT = "3000" # 3000: 3 seconds in ms
Step 2: Set Secrets
1. Open your Repl in Replit
2. Click the lock icon (Secrets) in the sidebar
3. Add each secret:
- Key: API_KEY, Value: your-api-key
- Key: DATABASE_URL, Value: your-db-url
# Or via Replit CLI
replit secrets set API_KEY "your-api-key"
replit secrets set DATABASE_URL "your-db-url"
Step 3: Deploy
1. Click "Deploy" button in the Replit editor
2. Choose deployment type:
- **Static**: For frontend-only apps (free)
- **Autoscale**: Scales to zero, pay per request
- **Reserved VM**: Always-on, fixed monthly cost
3. Configure machine size (0.25 - 8 vCPU)
4. Click "Deploy"
Step 4: Custom Domain Setup
1. Go to Deployment settings > Custom Domain
2. Enter your domain: app.example.com
3. Add DNS records:
- CNAME: app -> your-repl.replit.app
4. Wait for SSL certificate provisioning
Step 5: Health Check Endpoint
// health.ts
export async function GET() {
return Response.json({
status: "healthy",
environment: process.env.REPL_SLUG,
region: process.env.REPLIT_DEPLOYMENT_REGION,
timestamp: new Date().toISOString(),
});
}
Error Handling
| Issue | Cause | Solution |
|---|---|---|
| Deploy fails | Build error | Check console logs in Replit |
| Port mismatch | Wrong PORT | Use process.env.PORT or 3000 |
| Cold start slow | Autoscale spin-up | Use Reserved VM for latency-sensitive apps |
| Secret not found | Not set in Secrets | Add secret via Replit sidebar |
Examples
Quick Deploy via CLI
set -euo pipefail
# Install Replit CLI
npm install -g replit
# Deploy current repl
replit deploy --type autoscale
Resources
Next Steps
For multi-environment setup, see replit-multi-env-setup.
Output
- Configuration files or code changes applied to the project
- Validation report confirming correct implementation
- Summary of changes made and their rationale
04 同仓库更多 Skills
zustand-store-ts
Create Zustand stores with TypeScript, subscribeWithSelector middleware, and proper state/action separation. Use when building React state management, creating global stores, or implementing reactive state patterns with Zustand.
zustand-store-creator
Zustand Store Creator - Auto-activating skill for Frontend Development. Triggers on: zustand store creator, zustand store creator Part of the Frontend Development skill category.
zero-trust-config-helper
Zero Trust Config Helper - Auto-activating skill for Security Advanced. Triggers on: zero trust config helper, zero trust config helper Part of the Security Advanced skill category.
zapier-integration-helper
Zapier Integration Helper - Auto-activating skill for Business Automation. Triggers on: zapier integration helper, zapier integration helper Part of the Business Automation skill category.
zai-cli
Execute z.AI CLI providing vision, search, reader, and GitHub exploration via CLI and MCP. Use when user needs image/video analysis, OCR, UI-to-code conversion, error diagnosis, real-time web search, web page to markdown extraction, or GitHub code exploration. Trigger with phrases like "analyze this image", "search the web for", "read this page", "explore this repo", or "use zai". Requires Z_AI_API_KEY.
yt-research
Research competitor YouTube channels, niches, and trending topics for your content strategy. Use this skill whenever the user says "research channels", "analyze competitors", "find trending topics", "niche analysis", "competitive research", "what are other creators doing", "scrape YouTube channels", or wants to understand the competitive landscape for a specific tool or topic area. Use when working with yt research. Trigger with 'yt', 'research'.