Skip to content

docs(nuxt): Add Nuxt docs for manual setup #10981

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Aug 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ notSupported:
- javascript.ember
- javascript.gatsby
- javascript.nextjs
- javascript.nuxt
- javascript.react
- javascript.vue
- javascript.wasm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ supported:
- javascript.nestjs
- javascript.electron
- javascript.nextjs
- javascript.nuxt
- javascript.sveltekit
- javascript.remix
- javascript.astro
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ supported:
- javascript.nestjs
- javascript.electron
- javascript.nextjs
- javascript.nuxt
- javascript.sveltekit
- javascript.remix
- javascript.astro
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ supported:
- javascript.nestjs
- javascript.electron
- javascript.nextjs
- javascript.nuxt
- javascript.sveltekit
- javascript.remix
- javascript.astro
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ supported:
- javascript.nestjs
- javascript.electron
- javascript.nextjs
- javascript.nuxt
- javascript.sveltekit
- javascript.remix
- javascript.astro
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ supported:
- javascript.nestjs
- javascript.electron
- javascript.nextjs
- javascript.nuxt
- javascript.sveltekit
- javascript.remix
- javascript.astro
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ supported:
- javascript.nestjs
- javascript.electron
- javascript.nextjs
- javascript.nuxt
- javascript.sveltekit
- javascript.remix
- javascript.astro
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ supported:
- javascript.nestjs
- javascript.electron
- javascript.nextjs
- javascript.nuxt
- javascript.sveltekit
- javascript.remix
- javascript.astro
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ supported:
- javascript.nestjs
- javascript.electron
- javascript.nextjs
- javascript.nuxt
- javascript.sveltekit
- javascript.remix
- javascript.astro
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ supported:
- javascript.nestjs
- javascript.electron
- javascript.nextjs
- javascript.nuxt
- javascript.sveltekit
- javascript.remix
- javascript.astro
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ supported:
- javascript.nestjs
- javascript.electron
- javascript.nextjs
- javascript.nuxt
- javascript.sveltekit
- javascript.remix
- javascript.astro
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ supported:
- javascript.nestjs
- javascript.electron
- javascript.nextjs
- javascript.nuxt
- javascript.sveltekit
- javascript.remix
- javascript.astro
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ supported:
- javascript.nestjs
- javascript.electron
- javascript.nextjs
- javascript.nuxt
- javascript.sveltekit
- javascript.remix
- javascript.astro
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ supported:
- javascript.nestjs
- javascript.electron
- javascript.nextjs
- javascript.nuxt
- javascript.sveltekit
- javascript.remix
- javascript.astro
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ supported:
- javascript.nestjs
- javascript.electron
- javascript.nextjs
- javascript.nuxt
- javascript.sveltekit
- javascript.remix
- javascript.astro
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ supported:
- javascript.nestjs
- javascript.electron
- javascript.nextjs
- javascript.nuxt
- javascript.sveltekit
- javascript.remix
- javascript.astro
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ supported:
- javascript.nestjs
- javascript.electron
- javascript.nextjs
- javascript.nuxt
- javascript.sveltekit
- javascript.remix
- javascript.astro
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ supported:
- javascript.koa
- javascript.nestjs
- javascript.nextjs
- javascript.nuxt
- javascript.sveltekit
- javascript.remix
- javascript.astro
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ supported:
- javascript.nestjs
- javascript.electron
- javascript.nextjs
- javascript.nuxt
- javascript.sveltekit
- javascript.remix
- javascript.astro
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ supported:
- javascript.koa
- javascript.nestjs
- javascript.nextjs
- javascript.nuxt
- javascript.sveltekit
- javascript.remix
- javascript.astro
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ supported:
- javascript.nestjs
- javascript.electron
- javascript.nextjs
- javascript.nuxt
- javascript.sveltekit
- javascript.remix
- javascript.astro
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ supported:
- javascript.nestjs
- javascript.electron
- javascript.nextjs
- javascript.nuxt
- javascript.sveltekit
- javascript.remix
- javascript.astro
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: WinterCGFetch
description: "Creates spans and attaches tracing headers to fetch requests on edge runtimes. (default)"
supported:
- javascript.nextjs
- javascript.nuxt
---

<Alert level="info">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ The Sentry SDK ships with code that is not strictly required for it to collect y
you use certain features.
</Note>

<PlatformSection notSupported={["javascript.nextjs", "javascript.sveltekit", "javascript.remix", "javascript.astro"]}>
<PlatformSection notSupported={["javascript.nextjs", "javascript.nuxt", "javascript.sveltekit", "javascript.remix", "javascript.astro"]}>

### Tree Shaking With Sentry Bundler Plugins

Expand Down Expand Up @@ -144,7 +144,7 @@ Replacing this flag with `true` will tree shake any SDK code that's related to t
</PlatformSection>
</PlatformCategorySection>

<PlatformSection notSupported={["javascript.nextjs", "javascript.sveltekit", "javascript.remix", "javascript.astro"]}>
<PlatformSection notSupported={["javascript.nextjs", "javascript.nuxt", "javascript.sveltekit", "javascript.remix", "javascript.astro"]}>

### Tree Shaking With Webpack

Expand Down Expand Up @@ -191,7 +191,7 @@ module.exports = {

</PlatformSection>

<PlatformSection notSupported={["javascript.nextjs", "javascript.sveltekit", "javascript.remix", "javascript.astro"]}>
<PlatformSection notSupported={["javascript.nextjs", "javascript.nuxt", "javascript.sveltekit", "javascript.remix", "javascript.astro"]}>

### Tree Shaking With Rollup

Expand Down
1 change: 1 addition & 0 deletions docs/platforms/javascript/common/crons/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ supported:
- javascript.hapi
- javascript.koa
- javascript.nestjs
- javascript.nuxt
---

Once implemented, it'll allow you to get alerts and metrics to help you solve errors, detect timeouts, and prevent disruptions to your service.
Expand Down
1 change: 1 addition & 0 deletions docs/platforms/javascript/common/crons/troubleshooting.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ supported:
- javascript.hapi
- javascript.koa
- javascript.nestjs
- javascript.nuxt
---

<PlatformCategorySection supported={['server', 'serverless']}>
Expand Down
4 changes: 2 additions & 2 deletions docs/platforms/javascript/common/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ If you prefer to follow video instructions, see [How to Install the Sentry Next.

<PlatformSection notSupported={["javascript.deno"]}>

<PlatformSection notSupported={["javascript", "javascript.astro", "javascript.cordova", "javascript.nextjs", "javascript.remix", "javascript.sveltekit", "javascript.bun"]}>
<PlatformSection notSupported={["javascript", "javascript.astro", "javascript.cordova", "javascript.nextjs", "javascript.nuxt", "javascript.remix", "javascript.sveltekit", "javascript.bun"]}>

## Features

Expand All @@ -63,7 +63,7 @@ Select which Sentry features you'd like to install in addition to Error Monitori
</PlatformSection>
</PlatformCategorySection>

<PlatformSection notSupported={["javascript", "javascript.astro", "javascript.cordova", "javascript.nextjs", "javascript.remix", "javascript.sveltekit", "javascript.bun", "javascript.capacitor", "javascript.ember", "javascript.angular", "javascript.react", "javascript.solid", "javascript.svelte", "javascript.vue"]}>
<PlatformSection notSupported={["javascript", "javascript.astro", "javascript.cordova", "javascript.nextjs", "javascript.nuxt", "javascript.remix", "javascript.sveltekit", "javascript.bun", "javascript.capacitor", "javascript.ember", "javascript.angular", "javascript.react", "javascript.solid", "javascript.svelte", "javascript.vue"]}>

In addition to capturing errors, you can monitor interactions between multiple services or applications by [enabling tracing](/concepts/key-terms/tracing/). You can also collect and analyze performance profiles from real users with [profiling](/product/explore/profiling/).

Expand Down
1 change: 1 addition & 0 deletions docs/platforms/javascript/common/install/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ notSupported:
- javascript.ember
- javascript.gatsby
- javascript.nextjs
- javascript.nuxt
- javascript.react
- javascript.vue
- javascript.wasm
Expand Down
1 change: 1 addition & 0 deletions docs/platforms/javascript/common/install/loader.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ notSupported:
- javascript.ember
- javascript.gatsby
- javascript.nextjs
- javascript.nuxt
- javascript.react
- javascript.vue
- javascript.wasm
Expand Down
1 change: 1 addition & 0 deletions docs/platforms/javascript/common/install/npm.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ notSupported:
- javascript.ember
- javascript.gatsby
- javascript.nextjs
- javascript.nuxt
- javascript.react
- javascript.vue
- javascript.wasm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ supported:
- javascript.hapi
- javascript.koa
- javascript.nestjs
- javascript.nuxt
- javascript.sveltekit
- javascript.astro
- javascript.remix
Expand Down
1 change: 1 addition & 0 deletions docs/platforms/javascript/common/opentelemetry/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ supported:
- javascript.hapi
- javascript.koa
- javascript.nestjs
- javascript.nuxt
- javascript.sveltekit
- javascript.astro
- javascript.remix
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ supported:
- javascript.hapi
- javascript.koa
- javascript.nestjs
- javascript.nuxt
- javascript.sveltekit
- javascript.astro
- javascript.remix
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ notSupported:
- javascript.remix
- javascript.sveltekit
- javascript.astro
- javascript.nuxt
---

In this guide, you'll learn how to successfully upload source maps using our `sentry-cli` tool.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ notSupported:
- javascript.remix
- javascript.sveltekit
- javascript.astro
- javascript.nuxt
---

<PlatformContent includePath="sourcemaps/upload/primer" />
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ supported:
- javascript.bun
- javascript.deno
- javascript.nextjs
- javascript.nuxt
- javascript.astro
- javascript.sveltekit
- javascript.remix
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ supported:
- javascript.bun
- javascript.deno
- javascript.nextjs
- javascript.nuxt
- javascript.astro
- javascript.sveltekit
- javascript.remix
Expand Down
6 changes: 6 additions & 0 deletions docs/platforms/javascript/guides/nuxt/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
title: Nuxt
description: Nuxt is a framework for full-stack web apps and websites. Learn how to set it up with Sentry.
sdk: sentry.javascript.nuxt
categories:
- browser
- server
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"next-mdx-remote": "^4.4.1",
"nextjs-toploader": "^1.6.6",
"parse-numeric-range": "^1.3.0",
"platformicons": "^5.10.9",
"platformicons": "^6.0.2",
"prism-sentry": "^1.0.2",
"prismjs": "^1.27.0",
"query-string": "^6.13.1",
Expand Down Expand Up @@ -134,4 +134,4 @@
"node": "20.11.0",
"yarn": "1.22.21"
}
}
}
2 changes: 1 addition & 1 deletion platform-includes/capture-error/javascript.angular.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
You can pass an `Error` object to `captureException()` to get it captured as event. It's also possible to pass non-`Error` objects and strings, but be aware that the resulting events in Sentry may be missing a stack trace.
You can pass an `Error` object to `captureException()` to get it captured as an event. It's also possible to pass non-`Error` objects and strings, but be aware that the resulting events in Sentry may be missing a stack trace.

```typescript {filename:some.component.ts} {1,6}
import * as Sentry from "@sentry/angular";
Expand Down
2 changes: 1 addition & 1 deletion platform-includes/capture-error/javascript.cordova.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
You can pass an `Error` object to `captureException()` to get it captured as event. It's also possible to pass non-`Error` objects and strings, but be aware that the resulting events in Sentry may be missing a stack trace.
You can pass an `Error` object to `captureException()` to get it captured as an event. It's also possible to pass non-`Error` objects and strings, but be aware that the resulting events in Sentry may be missing a stack trace.

```javascript
import * as Sentry from "sentry-cordova";
Expand Down
2 changes: 1 addition & 1 deletion platform-includes/capture-error/javascript.ember.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
You can pass an `Error` object to `captureException()` to get it captured as event. It's also possible to pass non-`Error` objects and strings, but be aware that the resulting events in Sentry may be missing a stack trace.
You can pass an `Error` object to `captureException()` to get it captured as an event. It's also possible to pass non-`Error` objects and strings, but be aware that the resulting events in Sentry may be missing a stack trace.

```javascript
import * as Sentry from "@sentry/ember";
Expand Down
2 changes: 1 addition & 1 deletion platform-includes/capture-error/javascript.gatsby.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
You can pass an `Error` object to `captureException()` to get it captured as event. It's also possible to pass non-`Error` objects and strings, but be aware that the resulting events in Sentry may be missing a stack trace.
You can pass an `Error` object to `captureException()` to get it captured as an event. It's also possible to pass non-`Error` objects and strings, but be aware that the resulting events in Sentry may be missing a stack trace.

```javascript
import * as Sentry from "@sentry/gatsby";
Expand Down
2 changes: 1 addition & 1 deletion platform-includes/capture-error/javascript.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
You can pass an `Error` object to `captureException()` to get it captured as event. It's also possible to pass non-`Error` objects and strings, but be aware that the resulting events in Sentry may be missing a stack trace.
You can pass an `Error` object to `captureException()` to get it captured as an event. It's also possible to pass non-`Error` objects and strings, but be aware that the resulting events in Sentry may be missing a stack trace.

```javascript
import * as Sentry from "@sentry/browser";
Expand Down
2 changes: 1 addition & 1 deletion platform-includes/capture-error/javascript.nextjs.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
You can pass an `Error` object to `captureException()` to get it captured as event. It's also possible to pass non-`Error` objects and strings, but be aware that the resulting events in Sentry may be missing a stack trace.
You can pass an `Error` object to `captureException()` to get it captured as an event. It's also possible to pass non-`Error` objects and strings, but be aware that the resulting events in Sentry may be missing a stack trace.

```javascript
import * as Sentry from "@sentry/nextjs";
Expand Down
11 changes: 11 additions & 0 deletions platform-includes/capture-error/javascript.nuxt.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
You can pass an `Error` object to `captureException()` to get it captured as an event. It's also possible to pass non-`Error` objects and strings, but be aware that the resulting events in Sentry may be missing a stack trace.

```javascript
import * as Sentry from "@sentry/nuxt";

try {
aFunctionThatMightFail();
} catch (err) {
Sentry.captureException(err);
}
```
Loading
Loading