mostlyserious/craftcms-sveltekit 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mostlyserious/craftcms-sveltekit

Composer 安装命令:

composer create-project mostlyserious/craftcms-sveltekit

包简介

Split monorepo bootstrap for headless Craft CMS projects with a SvelteKit frontend.

README 文档

README

Split monorepo bootstrap for headless Craft CMS projects with a SvelteKit frontend.

Structure

  • backend/ is the Craft CMS application and Composer root.
  • frontend/ is the SvelteKit application.
  • .ddev/ serves Craft at https://cms.<project>.ddev.site and SvelteKit at https://<project>.ddev.site.

Install

./utility/install.sh

The installer derives the DDEV project name from the folder name, writes local environment files, configures DDEV host routing, installs pnpm dependencies from the host before DDEV starts, installs Composer dependencies in DDEV, creates Craft keys, and runs Craft install. It resolves pnpm@latest through Corepack or npm exec corepack. It does not run a production frontend build.

The DDEV frontend daemon runs Vite directly with Node instead of pnpm run dev. Dependencies are installed from the host before DDEV starts, and avoiding pnpm in supervisor prevents non-TTY dependency repair prompts.

Server-side frontend requests call Craft through CRAFT_INTERNAL_HOST=http://0.0.0.0 inside DDEV. Browser-facing CMS links still use PUBLIC_CRAFT_URL=https://cms.<project>.ddev.site.

To run Craft install noninteractively, provide CRAFT_ADMIN_EMAIL, CRAFT_ADMIN_USERNAME, and CRAFT_ADMIN_PASSWORD. If any are omitted, the installer lets craft install/craft prompt for missing admin values.

Common Commands

ddev composer install
ddev craft up
corepack pnpm@latest install --frozen-lockfile
ddev pnpm --dir frontend run check
ddev pnpm --dir frontend test
ddev composer run check
ddev composer run pint

Run dev or build scripts only after explicit approval in agent sessions.

Public API

  • api/page/<uri>
  • api/seo/<uri>
  • api/form/<handle>
  • api/craft
  • api/navigation
  • api/footer
  • api/shared
  • api/ping

Action endpoints:

  • actions/general/session
  • actions/general/quick-edit/entry

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: TypeScript

其他信息

  • 授权协议: Unlicense
  • 更新时间: 2026-07-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固