Integrate Vercel's Speed Insights into Laioutr.
See laioutr.com for more information about Laioutr.
- Native Laioutr App: Seamlessly adds Vercel Speed Insights to your Laioutr Frontend.
- Nuxt integration: Ships as a Nuxt module used by Laioutr Frontend.
- Zero-config: No need to configure anything. Install the app and see the insights in your dashboard.
You can configure the module by adding the following to your nuxt.config.ts file:
export default defineNuxtConfig({
modules: ["@laioutr/app-vercel-speed-insights"],
"@laioutr/app-vercel-speed-insights": {
sampleRate: 0.5, // 50%
},
});sampleRate: The sample rate for the Speed Insights. Defaults to1(100%).
Before installing dependencies, you need to create a copy of the .npmrc.config file called .npmrc and fill in the NPM_LAIOUTR_TOKEN with your npm token. You can find this token in your project settings.
pnpm inpx @laioutr/cli project fetch-rc -p <organization slug>/<project slug> -s <project secret key>- This will load thelaioutrrc.jsonfile with the current remote project configuration.pnpm dev
That's it! You can now use the Vercel Speed Insights app in your Laioutr Frontend ✨
You can find a thorough guide on getting started with Laioutr development in our developer guide.
To publish a new version, run pnpm release. This will:
- Run the tests
- Update the changelog
- Publish the package to npmjs.org
- Push the changes to the repository
If you want to publish a private package to npm.laioutr.cloud, you need to:
- Make sure you have a
.npmrcwith your private npm registry token. - Add this line to the
package.jsonfile:"publishConfig": { "registry": "https://npm.laioutr.cloud/" } - Make sure your package-name follows the
@laioutr-org/<organization-slug>_<package-name>format.
Follow the setup guide to get started.