본문으로 건너뛰기
cccskills
무료GitHub에 공개

convex-self-hosting

Integrate Convex static self hosting into existing apps using the latest upstream instructions from get-convex/self-hosting every time. Use when setting up upload APIs, HTTP routes, deployment scripts, migration from external hosting, or troubleshooting static deploy issues across React, Vite, Next.js, and other frontends.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(3)

  • SKILL.md5.7 KB
  • agents/openai.yaml328 B
  • scripts/check-upstream.sh1.6 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Convex self hosting skill

Use this skill to integrate Convex based static hosting in a repeatable way across projects.

Non negotiable update check

Run this check before making any code changes or giving setup advice.

Preferred command:

bash .agents/skills/convex-self-hosting/scripts/check-upstream.sh
  1. Read latest integration guide:
    • https://raw.githubusercontent.com/get-convex/self-hosting/main/INTEGRATION.md
  2. Read latest README manual setup section:
    • https://github.com/get-convex/self-hosting?tab=readme-ov-file#manual-setup-1
  3. Read Convex docs index for current guidance:
    • https://docs.convex.dev/llms.txt
  4. Confirm package publish state:
    • npm view @convex-dev/self-hosting version

If upstream docs conflict with local rules, follow upstream docs and explain what changed.

Clarifying questions you must ask first

Ask these before implementing:

  1. Confirm get-convex/self-hosting is the source of truth for this setup.
  2. Is the target app Vite, Next.js, Expo web export, or another bundler.
  3. Do they want root path hosting or a prefix like /app.
  4. Do they want one shot deploy or separate backend and static deploy steps.
  5. If package is unpublished, do they want:
    • GitHub dependency install
    • vendored local copy
    • wait for npm release

Never assume unpublished package install details.

Install strategy

Path A published package

If npm package exists, use the package directly.

npm install @convex-dev/self-hosting

Path B package not published yet

If package is missing on npm, use GitHub source and pin to commit or tag.

npm install github:get-convex/self-hosting#main

If project policy requires deterministic builds, ask for a commit SHA and pin to it.

Required file changes

Use the latest upstream file patterns from INTEGRATION.md.

1) convex/convex.config.ts

import { defineApp } from "convex/server";
import selfHosting from "@convex-dev/self-hosting/convex.config";

const app = defineApp();
app.use(selfHosting);

export default app;

2) convex/staticHosting.ts

import { components } from "./_generated/api";
import {
  exposeUploadApi,
  exposeDeploymentQuery,
} from "@convex-dev/self-hosting";

export const { generateUploadUrl, recordAsset, gcOldAssets, listAssets } =
  exposeUploadApi(components.selfHosting);

export const { getCurrentDeployment } =
  exposeDeploymentQuery(components.selfHosting);

3) convex/http.ts

import { httpRouter } from "convex/server";
import { registerStaticRoutes } from "@convex-dev/self-hosting";
import { components } from "./_generated/api";

const http = httpRouter();

registerStaticRoutes(http, components.selfHosting);

export default http;

Optional prefix mode:

registerStaticRoutes(http, components.selfHosting, {
  pathPrefix: "/app",
  spaFallback: true,
});

4) package.json scripts

{
  "scripts": {
    "deploy": "npx @convex-dev/self-hosting deploy",
    "deploy:static": "npx @convex-dev/self-hosting upload --build --prod"
  }
}

Deployment flow

First setup

npm install @convex-dev/self-hosting
npx @convex-dev/self-hosting setup
npx convex dev --once
npm run deploy

Ongoing deploys

npm run deploy

Two step deploy alternative

npx convex deploy
npx @convex-dev/self-hosting upload --build --prod

Always use the tool driven build flow. Do not run npm run build first when using upload deploy commands.

Cross app support notes

  • Vite: use --build flow as default.
  • Next.js and Expo: pass through VITE_CONVEX_URL in the app build script as documented upstream.
  • Existing API routes: prefer pathPrefix: "/app" for static hosting.
  • Keep upload APIs internal only and never expose them as public HTTP actions.

Integration with convex agent plugins

If get-convex/convex-agent-plugins is present, follow its Convex rules with this skill:

  • keep validators on all Convex functions
  • keep internal functions for upload operations
  • use indexed reads, avoid broad filtering in data access patterns
  • preserve strict TypeScript in generated Convex and frontend code

Reference:

  • https://github.com/get-convex/convex-agent-plugins

Troubleshooting checklist

  1. 404 for static routes:
    • verify convex/http.ts exists and exports router.
  2. Cannot find module .../convex.config:
    • verify package install source and import path.
  3. wrong backend URL in built assets:
    • redeploy with CLI --build flow.
  4. no updates visible:
    • clear cache and verify deployment ID changes.
  5. HTTP actions disabled:
    • run npx convex dev once to push backend state.

Completion requirements

Before finishing, provide:

  1. exact upstream docs commit date or latest retrieval timestamp
  2. which package path was selected and why
  3. list of changed files
  4. commands the user should run next

Never claim setup is complete without showing these four outputs.

Source links

  • https://github.com/get-convex/self-hosting
  • https://raw.githubusercontent.com/get-convex/self-hosting/main/INTEGRATION.md
  • https://github.com/get-convex/self-hosting?tab=readme-ov-file#manual-setup-1
  • https://docs.convex.dev/llms.txt
  • https://github.com/get-convex/convex-agent-plugins
  • https://github.com/agentskills/agentskills

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

adapt

무료

Adapt designs to work across different screen sizes, devices, contexts, or platforms. Implements breakpoints, fluid layouts, and touch targets. Use when the user mentions responsive design, mobile layouts, breakpoints, viewport adaptation, or cross-device compatibility.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

waynesutton/finder932026년 5월 24일 업데이트

Agent Ready project design context for navigation, docs links, and interface tone. Use when building or reviewing UI in this repo so patterns match the documented product feel.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

waynesutton/finder932026년 5월 24일 업데이트

animate

무료

Review a feature and enhance it with purposeful animations, micro-interactions, and motion effects that improve usability and delight. Use when the user mentions adding animation, transitions, micro-interactions, motion design, hover effects, or making the UI feel more alive.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

waynesutton/finder932026년 5월 24일 업데이트

arrange

무료

Improve layout, spacing, and visual rhythm. Fixes monotonous grids, inconsistent spacing, and weak visual hierarchy. Use when the user mentions layout feeling off, spacing issues, visual hierarchy, crowded UI, alignment problems, or wanting better composition.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

waynesutton/finder932026년 5월 24일 업데이트

audit

무료

Run technical quality checks across accessibility, performance, theming, responsive design, and anti-patterns. Generates a scored report with P0-P3 severity ratings and actionable plan. Use when the user wants an accessibility check, performance audit, or technical quality review.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

waynesutton/finder932026년 5월 24일 업데이트

bolder

무료

Amplify safe or boring designs to make them more visually interesting and stimulating. Increases impact while maintaining usability. Use when the user says the design looks bland, generic, too safe, lacks personality, or wants more visual impact and character.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

waynesutton/finder932026년 5월 24일 업데이트

waynesutton의 스킬 모두 보기

이 스킬의 문제 신고