docs(installation): use pkg.pr.new

This commit is contained in:
Benjamin Canac
2025-03-08 12:20:28 +01:00
parent bf1c9e7c94
commit 7b81bfa1ae
2 changed files with 9 additions and 17 deletions

View File

@@ -243,19 +243,21 @@ export default defineNuxtConfig({
})
```
## Edge
## Continuous Releases
To use the latest updates pushed on the [`dev`](https://github.com/nuxt/ui/tree/dev) branch, you can use `@nuxt/ui-edge`.
Nuxt UI uses [pkg.pr.new](https://github.com/stackblitz-labs/pkg.pr.new) for continuous preview releases, providing developers with instant access to the latest features and bug fixes without waiting for official releases.
Update your `package.json` to the following:
Preview releases are automatically generated for every commit to the `dev` branch and pull requests targeting the `dev` branch. To use it into your project, replace the version in your `package.json` with the commit hash or pull request number.
```diff [package.json]
{
"devDependencies": {
- "@nuxt/ui": "^2.11.0"
+ "@nuxt/ui": "npm:@nuxt/ui-edge@latest"
"dependencies": {
- "@nuxt/ui": "^2.21.0",
+ "@nuxt/ui": "https://pkg.pr.new/@nuxt/ui@bf1c9e7",
}
}
```
Then run `pnpm install`, `yarn install` or `npm install`.
::note
**pkg.pr.new** will automatically comment on PRs with the installation URL, making it easy to test changes.
::