You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs(site): point install URLs at the deploy origin on preview builds
Preview deploys (main.viteplus.dev, PR staging) serve their own install
scripts, but the docs hardcode the production https://vite.plus
shortcuts. The deploy-docs composite now passes a site-origin input to
the build as DOCS_SITE_ORIGIN. When set, a markdown-it rule rewrites the
install URLs in markdown content, and the homepage install command and
AI copy prompt read __DOCS_*__ define constants from the same origin
(including the llms-full.txt link). The build:site task tracks the
variable in env so each deploy target keeps its own Vite Task cache
entry. Production builds are unchanged.
Known gap: the llms dumps copy raw markdown and keep production URLs on
previews.
const DEFAULT_PROMPT =`I want to use Vite+ in my project. Vite+ is the unified toolchain for the web behind the \`vp\` CLI — one tool combining Vite, Rolldown, Vitest, tsdown, Oxlint, Oxfmt, and Vite Task, plus runtime and package-manager management.
9
9
10
-
First, read https://viteplus.dev/llms-full.txt to learn Vite+'s commands and configuration.
10
+
First, read ${__DOCS_ORIGIN__}/llms-full.txt to learn Vite+'s commands and configuration.
11
11
12
12
Install the \`vp\` CLI if it's not already on the system:
- Windows (PowerShell): irm ${__DOCS_INSTALL_PS1_URL__} | iex
15
15
16
16
Then open a new terminal and run \`vp help\`. To scaffold a new project run \`vp create\`; to move an existing Vite project onto Vite+ run \`vp migrate\`.
0 commit comments