많은 기업가, 디자이너, 스튜디오는 이제 Cursor, Claude Code, v0, Lovable(일명 Vibe Coding)과 같은 AI 코딩 도구를 사용하여 인터랙티브한 비주얼을 갖춘 고도로 커스터마이징된 브랜드 사이트를 만들고, 이를 Vercel이나 Cloudflare Pages에 배포하고 있습니다.
하지만 모든 카피, 프로젝트 사진, 블로그 게시물을 하드코딩하면 사소한 업데이트가 있을 때마다 전체 코드를 다시 배포해야 합니다. 또한, 폼 스팸 방지나 문의 관리 대시보드와 같은 기능을 사용할 수 없게 됩니다.
가장 효율적인 접근 방식은 "AI가 프로젝트의 프론트엔드를 구축하게 하고, 콘텐츠, 블로그, 문의 폼 관리는 Kanorio가 담당하게 하는 것"입니다. 다음 세 단계만 따르면 AI가 알아서 통합을 처리해 줍니다.
I am building a brand website + blog using an external frontend and want to use this Kanorio site as my CMS backend. Please help me: 1. Call site.update_developer_settings to enable headlessEnabled: true, and tell me the permanent systemHost URL for this site. 2. Create the necessary data collections (e.g., projects, faqs) and populate them with a few sample entries. 3. Check if the site already has a "Contact Us" form (forms.list) and list the formId and field structure for me.
완료되면 AI는 사이트의 모든 컬렉션 필드, API URL, 폼 ID를 파악하게 됩니다.
Cursor 또는 Claude Code에서 프론트엔드 프로젝트(Next.js 또는 Astro 등)를 열고 아래 프롬프트를 붙여넣습니다. AI는 Kanorio의 자체 설명형 스키마 엔드포인트(/api/v1/collections)를 자동으로 읽어 모든 통합 코드를 작성합니다.
Help me connect this frontend project to the Content Delivery API of the Kanorio site (base URL: https://s-xxx.kanorio.com): 1. All public content fetching should be keyless (never put knr_pat_ into frontend environment variables). 2. First, fetch GET /api/v1/collections to understand the fields for each collection and the blog system collection, then generate TypeScript types for me. 3. For images and files, retrieve the public CDN URL and dimensions from assets[assetId].url at the top level of the response. 4. For blog post lists and detail pages, fetch /api/v1/collections/blog/items (include expand=authors,categories,tags and formats=markdown,html). Use filter[categories][has_slug]=category-slug for filtering. 5. For the contact form, fetch GET /api/v1/forms/{formId}/challenge to get the challenge, then POST to /api/v1/forms/{formId}/submit.
MCP를 지원하지 않는 외부 AI 도구(v0, Lovable, Bolt 등)를 사용하는 경우, 시스템 URL과 Kanorio의 AI 사양 인덱스 URL인 https://kanorio.com/llms.txt를 제공하기만 하면 됩니다.
My backend is a Kanorio Headless CMS with the API base URL: https://s-xxxxxxxxxxxx.kanorio.com Please read https://kanorio.com/llms.txt to understand the Kanorio Content Delivery API format, then read https://s-xxxxxxxxxxxx.kanorio.com/api/v1/collections to see my data structure. Help me integrate my homepage projects, blog, and contact form with real data.
프론트엔드를 Vercel이나 Cloudflare Pages에 배포한 후(운영 URL이 https://www.yourbrand.com이라고 가정), Cursor로 돌아와 AI에게 설정을 마무리하도록 요청합니다.
My frontend is now deployed to https://www.yourbrand.com. Please help me: 1. Add https://www.yourbrand.com to the allowedOrigins (CORS whitelist) for this Kanorio site and set externalStorefrontUrl to https://www.yourbrand.com. 2. Add a /api/revalidate route to my frontend project to receive Kanorio Webhooks (verify X-Kanorio-Signature and execute revalidateTag for payload.data.cacheTags), then use webhooks.create to register https://www.yourbrand.com/api/revalidate with Kanorio.
완료되면:
아니요. Content Delivery API는 기본적으로 http://localhost:<모든 포트> 및 http://127.0.0.1:<모든 포트>에서 오는 모든 교차 출처 요청을 자동으로 허용합니다. 로컬 테스트 중에는 직접 호출할 수 있습니다. 운영 또는 미리보기 URL(예: *.vercel.app)에 배포한 후에는 "사이트 설정 › 개발자"의 "허용된 출처" 섹션에 해당 URL을 추가하세요.
절대 안 됩니다. 공개 콘텐츠 가져오기 및 폼 제출에는 키가 필요 없는 Content Delivery API(/api/v1/*)를 사용합니다. knr_pat_ 키는 사이트 콘텐츠를 수정하고 삭제할 수 있는 권한을 부여하므로, 프론트엔드 코드나 NEXT_PUBLIC_* 환경 변수에 절대 포함하지 마십시오.