Communitygithub.com

Vercel 마이크로프론트엔드 가이드

Vercel에서 마이크로프론트엔드를 구축, 구성 및 배포하기 위한 가이드입니다. 사용자가 마이크로프론트엔드, 멀티 존, 앱 분할, 독립 배포, 크로스 앱 라우팅, 점진적 마이그레이션, 여러 프론트엔드를 하나의 도메인 아래 구성, microfrontends.json, @vercel/microfrontends, 로컬 프록시, 경로 기반 라우팅 등을 언급할 때 이 스킬을 사용하세요.

Vercel 마이크로프론트엔드 가이드란 무엇인가요?

이 스킬은 Vercel 플랫폼에서 마이크로프론트엔드 아키텍처를 구축, 구성 및 배포하는 방법을 설명하는 상세 가이드입니다. `microfrontends.json` 설정 파일을 통해 독립적으로 배포 가능한 여러 프론트엔드 애플리케이션을 하나의 일관된 사용자 경험으로 결합하는 방법을 다룹니다. Next.js, SvelteKit, React Router, Vite 등 주요 프레임워크를 지원하며, `@vercel/microfrontends` 패키지와 `vercel microfrontends` CLI를 사용하여 그룹 생성, 프로젝트 추가/제거, 구성 검사 등의 작업을 수행할 수 있습니다. 또한 로컬 개발 프록시 설정, 에셋 접두사 충돌 방지, 플래그 기반 라우팅, 미들웨어, 보안 및 문제 해결과 같은 고급 주제를 다루는 참조 문서(`references/` 디렉토리)를 제공하여, AI 에이전트가 사용자 질문에 따라 필요한 정보만 참조할 수 있도록 설계되었습니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Geruyang/agent-skills-library/tree/HEAD/original-skills/x-openai-microfrontends-4b38860

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

Vercel 마이크로프론트엔드

대규모 애플리케이션을 독립적으로 배포 가능한 단위로 분할하여 하나의 통합된 앱처럼 렌더링합니다. Vercel은 자체 글로벌 네트워크에서 microfrontends.json을 사용하여 라우팅을 처리합니다.

핵심 개념: 기본 앱(microfrontends.json 소유, 일치하지 않는 요청 처리) · 하위 앱(routing 경로 패턴 보유) · 에셋 접두사(정적 에셋 충돌 방지) · 독립 배포

프레임워크: Next.js(App Router + Pages Router), SvelteKit, React Router, Vite — 모두 @vercel/microfrontends를 통해 지원

CLI (vercel microfrontends / vercel mf):

  • create-group — 새 그룹 생성; 기본 대화형, --non-interactive 옵션으로 완전 비대화형 가능(옵션: --name, --project (반복 가능), --default-app, --default-route, --project-default-route (반복 가능, 형식: <project>=<route>, 비대화형 모드에서 기본이 아닌 각 프로젝트에 필수), --yes (확인 프롬프트 건너뛰기)); 참고: --non-interactive는 프로젝트 추가 시 무료 티어 한도를 초과할 경우 차단됨 — 사용자는 대화형으로 요금 변경을 확인해야 함
  • add-to-group — 현재 프로젝트를 기존 그룹에 추가; 대화형 터미널 필요(옵션: --group, --default-route)
  • remove-from-group — 현재 프로젝트를 그룹에서 제거; 대화형 터미널 필요(옵션: --yes는 프로젝트 링크 프롬프트만 건너뜀)
  • delete-group — 그룹 및 모든 설정을 영구 삭제; 대화형 터미널 필요(옵션: --group으로 그룹 사전 선택)
  • inspect-group — 그룹 메타데이터(프로젝트 이름, 프레임워크, Git 저장소, 루트 디렉터리) 검색; 자동화 설정에 유용(옵션: --group, --format=json, --config-file-name)
  • pull — 로컬 개발을 위해 원격 microfrontends.json 가져오기(옵션: --dpl)
  • microfrontends proxy — 로컬 개발 프록시 · microfrontends port — 자동 할당된 포트 출력

상세 정보 찾기

이 스킬은 references/ 디렉토리에 상세 참조 문서를 포함하고 있습니다. 모든 참조 문서를 미리 읽지 마십시오. 대신 사용자가 특정 주제를 물을 때 관련 파일을 검색하거나 grep하십시오.

주제참조 파일
시작하기, 빠른 시작, 프레임워크 설정, microfrontends.json 스키마, 필드, 명명 규칙, 예제references/configuration.md
경로 표현식, 에셋 접두사, 플래그 기반 라우팅, 미들웨어references/path-routing.md
로컬 프록시 설정, 폴리레포 구성, Turborepo, 포트, 배포 보호references/local-development.md
그룹 검사(inspect-group), 프로젝트 추가/제거, 폴백 환경, 내비게이션, 관찰 가능성references/managing-microfrontends.md
테스트 유틸리티(validateMiddlewareConfig, validateRouting 등), 디버그 헤더, 일반적인 문제references/troubleshooting.md
배포 보호, Vercel 방화벽, 마이크로프론트엔드용 WAF 규칙references/security.md

사용자가 특정 주제에 대해 질문할 때, 모든 참조 문서를 컨텍스트에 로드하지 않고 관련 참조 파일을 grep하거나 검색하여 답변을 찾으십시오.

Individual skills in this repo

This repo contains 12 individual skills — each has its own dedicated page.

Geruyang/agent-skills-library

Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.

Geruyang/agent-skills-library

Set up Tailwind CSS v4 in Expo with react-native-css and NativeWind v5 for universal styling

Geruyang/agent-skills-library

Use for new frontend applications, dashboards, games, creative websites, hero sections, and visually driven UI from scratch, or when the user explicitly asks for a redesign/restyle/modernization. Builds from clean, airy, high-taste, readable image-generated concept design with section-specific references, faithful implementation, and browser testing.

Geruyang/agent-skills-library

Use when testing, debugging, or making targeted improvements to rendered frontend apps through the Build Web Apps or web dev plugin: local dev servers, UI regressions, interaction bugs, console errors, responsive layout, and visual QA. Check whether the Browser plugin is available and use it first when it is; otherwise use regular Playwright with the recorded reason.

Geruyang/agent-skills-library

Design UI surfaces for browser games. Use when the user asks for HUDs, menus, overlays, responsive layouts, or visual direction that must protect the playfield.

Geruyang/agent-skills-library

GSAP animation reference for HyperFrames. Covers gsap.to(), from(), fromTo(), easing, stagger, defaults, timelines (gsap.timeline(), position parameter, labels, nesting, playback), and performance (transforms, will-change, quickTo). Use when writing GSAP animations in HyperFrames compositions.

Geruyang/agent-skills-library

Next.js App Router expert guidance. Use when building, debugging, or architecting Next.js applications — routing, Server Components, Server Actions, Cache Components, layouts, middleware/proxy, data fetching, rendering strategies, and deployment on Vercel.

Geruyang/agent-skills-library

Use when sizing Public Equity Investing positions, finding equity hedges, or building an integrated position-and-hedge risk plan from a listed-equity thesis. Do not use for thesis construction, standalone event underwriting, trade execution, personal investment advice, or credit-instrument risk.

Geruyang/agent-skills-library

Integrate data visualizations into React and Next.js applications. Use when the user needs chart components, UML-like or architecture diagram components, React integration patterns, Next.js client or server boundaries, hydration-safe rendering, lazy loading, framework-aware performance, scroll-driven visual stories, or export guidance.

Geruyang/agent-skills-library

shadcn/ui expert guidance — CLI, component installation, composition patterns, custom registries, theming, Tailwind CSS integration, and high-quality interface design. Use when initializing shadcn, adding components, composing product UI, building custom registries, configuring themes, or troubleshooting component issues.

Geruyang/agent-skills-library

v0 by Vercel expert guidance. Use when discussing AI code generation, generating UI components from prompts, v0 CLI usage, v0 SDK/API integration, or integrating v0 into development workflows with GitHub and Vercel deployment.

Geruyang/agent-skills-library

Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI. Provides project context, component docs, and usage examples. Applies when working with shadcn/ui, component registries, presets, --preset codes, or any project with a components.json file. Also triggers for "shadcn init", "create an app with --preset", or "switch to --preset".

관련 스킬