@omnixdp/upgrade-app
v0.1.5
Published
Upgrade Omni xDP generated Next.js starter applications to the latest create-app scaffold.
Downloads
842
Readme
@omnixdp/upgrade-app
Upgrade an Omni xDP generated Next.js starter application to the latest @omnixdp/create-app scaffold.
Usage
npx @omnixdp/upgrade-app@latestRun it from the generated application root, or pass a directory:
npx @omnixdp/upgrade-app@latest ./my-siteOptions
omnixdp-upgrade-app [app-directory] [options]
--check
--dry-run
--yes
--help--check exits with a failure when the app is out of date, which is useful in CI. --dry-run prints the upgrade plan without writing files. --yes allows non-interactive application of changes that may alter existing application behavior.
Current Migrations
The upgrader carries forward generated starter features from the latest @omnixdp/create-app scaffold.
Public AI discovery support powered by next-llms-txt:
- Adds the
next-llms-txtdependency. - Adds
NEXT_PUBLIC_SITE_URLto.env.example. - Adds
src/app/llms.txt/route.ts,src/lib/llms-txt.ts, andsrc/proxy.ts. - Adds page-level
llmstxtmetadata tosrc/app/page.tsxwhen it can be inserted safely.
CMS Rich Text Editor rendering support:
- Adds or refreshes
src/components/omnixdp/rte-to-react.tsx, a dependency-freeRteToReacthelper for rendering persisted Rich Text Editor JSON, multi-value rich-text arrays, and legacy HTML values as React.
Existing src/proxy.ts changes are treated as breaking because proxy routing can affect application traffic. The CLI asks for confirmation before applying those changes in an interactive terminal.
