webiny-local-development
하는 일
Webiny 프로젝트를 AWS에 배포하고, API나 관리자 앱을 내 컴퓨터에서 실행하며, 환경을 나누어 관리하는 방법을 설명합니다. Webiny 프로젝트를 만들고 테스트하는 개발자를 위한 스킬입니다.
사용하는 경우
- ✓프로젝트 전체나 한 부분만 배포하는 방법을 물을 때.
- ✓개발 서버로 관리자 앱을 로컬에서 실행하고 싶을 때.
- ✓개발 중에 API나 관리자 앱을 디버깅해야 하는 경우.
스킬 링크
https://github.com/webiny/webiny-js/blob/next/skills/user-skills/local-development/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“변경 사항을 테스트하려면 내 컴퓨터에서 Webiny 관리자 앱을 시작하는 명령이 무엇인가요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
이 스킬은 배포 명령과, 작업하는 동안 앱을 로컬에서 실행하는 감시 모드 명령을 설명합니다. 개발이나 운영 같은 올바른 환경을 고르는 방법도 다룹니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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
자주 묻는 질문
배포는 기본적으로 어떤 환경을 쓰나요?
environment 옵션으로 다른 환경을 지정하지 않으면 dev 환경을 씁니다.
로컬에서 실행하기 전에 배포해야 하나요?
네. 로컬 개발을 하기 전에 코어와 API 부분을 먼저 배포하라고 스킬이 설명합니다.
감시 모드를 끈 뒤에 다시 배포해야 하나요?
네. 감시 모드를 멈춘 뒤에는 다시 배포하라고 조언합니다.
상세 정보
작성자의 원본 설명
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
인기도
- GitHub 스타
- 8.1k
- 순위
- #12614
- 라이선스
- —
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
prd-to-plan
8.1k에이전트가 제품 요구사항 문서를 작고 끝까지 이어지는 조각들로 된 단계별 계획으로 바꿔 Markdown 파일로 저장하도록 돕습니다.
webiny-admin-architect
8.1k에이전트에게 Webiny 플랫폼의 관리자 화면을 비즈니스 로직 계층과 프레젠터 패턴으로 만드는 방법을 가르칩니다.
webiny-admin-permissions
8.1k에이전트에게 Webiny 관리자 화면에 권한 제어를 추가하는 법을 가르칩니다. 스키마에서 권한 양식을 자동 생성하고 표시 여부를 확인합니다.
webiny-form-model
8.1k에이전트에게 선언형 필드 빌더, 레이아웃, 검증, 조건부 규칙으로 Webiny 양식을 만드는 법을 가르칩니다.
비슷한 스킬
openclaw-update
394k에이전트가 설치 방식에 맞는 방법을 골라 기존 OpenClaw Gateway를 업데이트하고, 세션이 계속 작동하도록 돕습니다.
diagnose-gateway
394k에이전트가 설정, 채널, 포트를 확인해 OpenClaw Gateway가 왜 실패하는지 찾되, 아무것도 바꾸지 않도록 돕습니다.
crabbox-apps
394k에이전트가 임시 클라우드 머신에서 앱을 열고 실행한 뒤, 그 화면을 채팅의 측면 패널에 보여 주도록 돕습니다.