webiny-local-development
Was er macht
Erklärt, wie man ein Webiny-Projekt auf AWS deployt, seine API oder Admin-App auf dem eigenen Computer laufen lässt und getrennte Umgebungen verwaltet. Sie ist für Entwickler gedacht, die Webiny-Projekte bauen und testen.
Wann du ihn nutzt
- ✓Wenn ein Entwickler fragt, wie er das ganze Webiny-Projekt oder nur einen Teil davon deployt.
- ✓Wenn ein Entwickler die Admin-App lokal mit einem Entwicklungsserver laufen lassen will.
- ✓Wenn ein Entwickler die API oder Admin-App während der Entwicklung debuggen muss.
Link zum Skill
https://github.com/webiny/webiny-js/blob/next/skills/user-skills/local-development/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Welchen Befehl brauche ich, um meine Webiny-Admin-App auf meinem Computer zu starten, damit ich Änderungen testen kann?”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Die Fähigkeit nennt die Befehle für das Deployment und für den Watch-Modus, der die App lokal laufen lässt, während du arbeitest. Außerdem erklärt sie, wie man die richtige Umgebung wählt, etwa dev oder prod.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von GitHub.
Local Development and Deployment
TL;DR
Webiny is a serverless platform on AWS. Deploy with yarn webiny deploy, develop locally with yarn webiny watch (API uses Local Lambda Development, Admin runs a local React dev server). Projects support multiple environments (long-lived and short-lived). Always redeploy after stopping watch mode.
Deployment
Initial Deployment
Deploy all three applications (Core, API, Admin) at once:
yarn webiny deploy
This deploys to the dev environment by default. First deployment takes 5-15 minutes.
Deploying Individual Applications
yarn webiny deploy core # Infrastructure only
yarn webiny deploy api # Backend API only
yarn webiny deploy admin # Admin frontend only
Deploy to a Specific Environment
yarn webiny deploy --env prod
yarn webiny deploy api --env staging
Get Deployment Info
yarn webiny info # Shows all URLs (Admin, API, CloudFront)
yarn webiny info --env prod # Info for a specific environment
Local Development
Before developing locally, you must deploy Core and API first:
yarn webiny deploy core api
Admin Development
yarn webiny watch admin
- Starts a local dev server at
http://localhost:3001 - Hot module replacement for instant feedback
- Standard React development experience
- Use for: custom Admin UI extensions, white-label branding, custom views
API Development (Local Lambda Development)
yarn webiny watch api
How it works:
- Lambda stubs deployed -- real Lambda functions are replaced with stubs that forward events
- Events forwarded -- requests to AWS get forwarded to your local machine
- Local execution -- your code runs locally with full AWS Lambda environment
- Response routing -- responses sent back through the Lambda stub
Benefits:
- See backend code changes instantly (no redeployment)
- Debug locally with standard Node.js tools
- Console logs appear directly in your terminal
IMPORTANT: Redeploy After Watch
When you stop yarn webiny watch api, your Lambda functions still contain stub code. You must redeploy:
yarn webiny deploy api
The watch command prints a reminder when you stop it.
Running Both
You can run both watch commands simultaneously in separate terminals:
# Terminal 1
yarn webiny watch api
# Terminal 2
yarn webiny watch admin
Environments
Long-Lived Environments
Persistent environments maintained over time:
- dev -- daily development
- staging -- pre-production testing
- prod -- production
Best practice: manage via CI/CD pipelines.
Short-Lived Environments
Temporary environments for specific purposes:
- Feature branch testing
- PR previews
- Experimentation
# Create a short-lived environment
yarn webiny deploy --env feature-123
# Destroy when done
yarn webiny destroy --env feature-123
Deployment Modes
Webiny has two deployment templates:
- dev -- smaller, cheaper infrastructure for development
- prod -- production-grade infrastructure with HA, backups, auto-scaling
The mode is determined by whether the environment name is in the ProductionEnvironments list:
// webiny.config.tsx
<Infra.ProductionEnvironments environments={["prod", "staging"]} />
State Files
State files are JSON files that track the current state of your deployment:
- Store infrastructure resource info, configurations, and metadata
- Essential for managing environments and tracking changes
- Stored in S3 by default
Debugging
API Errors
During yarn webiny watch api:
- Console logs appear directly in the terminal
- Use
console.log()for quick debugging - Use
Logger(DI-injected) for production logging to CloudWatch
import { Logger } from "webiny/api";
// In your extension class
this.logger.info("Processing request...");
this.logger.warn("Something unexpected");
this.logger.error("Something failed");
Admin Errors
Use browser DevTools:
- Console -- view logs and errors
- Network tab -- inspect GraphQL requests/responses
- React Developer Tools -- debug component state/props
- GraphQL Network Inspector -- inspect GraphQL operations
Infrastructure Errors
Deployment errors from Pulumi typically relate to:
- IAM permission issues
- AWS service quotas
- Resource configuration problems
Check the deployment output
Häufige Fragen
Welche Umgebung nutzt ein Deployment standardmäßig?
Die Entwicklungsumgebung dev, sofern du mit der Umgebungsoption keine andere angibst.
Muss ich vor dem lokalen Start deployen?
Ja. Die Fähigkeit sagt, dass Core- und API-Teile vor der lokalen Entwicklung zuerst deployt werden müssen.
Soll ich nach dem Beenden des Watch-Modus neu deployen?
Ja. Die Fähigkeit rät, nach dem Beenden des Watch-Modus erneut zu deployen.
Details
Originalbeschreibung des Autors
Deploying, developing locally, managing environments, and debugging Webiny projects. Use this skill when the developer asks about deployment commands (deploy, destroy, info), local development with watch mode (API or Admin), the Local Lambda Development system, environment management (long-lived vs short-lived, production vs dev modes), build parameters, state files, debugging API/Admin/Infrastructure errors, or the redeploy-after-watch requirement.
repo: webiny/webiny-js
Beliebtheit
- GitHub-Sterne
- 8.1k
- Platz im Ranking
- #12614
- Lizenz
- —
- Aktualisiert
- 2.11.2026
Kommentare
- …
Weitere Skills aus diesem Repository
prd-to-plan
8.1kHilft deinem Agenten, ein Produktanforderungsdokument in einen phasenweisen Plan aus kleinen Ende-zu-Ende-Scheiben zu verwandeln, gespeichert als Markdown-Datei.
webiny-admin-architect
8.1kBringt deinem Agenten bei, Admin-Oberflächen für die Webiny-Plattform zu bauen, mit ihren Geschäftslogik-Schichten und dem Presenter-Muster.
webiny-admin-permissions
8.1kBringt deinem Agenten bei, Berechtigungssteuerungen zu Webiny-Admin-Bildschirmen hinzuzufügen, einschließlich automatisch erzeugter Berechtigungsformulare und Prüfungen zum Ein- oder Ausblenden.
webiny-form-model
8.1kBringt deinem Agenten bei, Formulare in Webiny mit einem deklarativen Feld-Baukasten zu bauen, mit Layouts, Validierung und bedingten Regeln.
Ähnliche Skills
openclaw-update
394kHilft deinem Agenten, ein bestehendes OpenClaw-Gateway zu aktualisieren, mit der Methode, die zu deiner Installation passt, während deine Sitzung weiterläuft.
diagnose-gateway
394kHilft deinem Agenten herauszufinden, warum dein OpenClaw-Gateway fehlschlägt, indem er Einstellungen, Kanäle und Ports prüft, ohne etwas zu ändern.
crabbox-apps
394kHilft deinem Agenten, eine App auf einer temporären Cloud-Maschine zu öffnen und auszuführen und ihre Ansicht in deinem Chat-Seitenpanel zu zeigen.