Skip to content

WIP: debug nft lambda size output #13844

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
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
4 changes: 2 additions & 2 deletions app/global-error.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
import 'prism-sentry/index.css';

import {useEffect} from 'react';
import * as Sentry from '@sentry/nextjs';
// import * as Sentry from '@sentry/nextjs';
import Error from 'next/error';

export default function GlobalError({error}) {
useEffect(() => {
Sentry.captureException(error);
// Sentry.captureException(error);
}, [error]);

return (
Expand Down
62 changes: 32 additions & 30 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const {redirects} = require('./redirects.js');

const {codecovNextJSWebpackPlugin} = require('@codecov/nextjs-webpack-plugin');
const {withSentryConfig} = require('@sentry/nextjs');
// const {withSentryConfig} = require('@sentry/nextjs');

const outputFileTracingExcludes = process.env.NEXT_PUBLIC_DEVELOPER_DOCS
? {
Expand All @@ -13,6 +13,8 @@ const outputFileTracingExcludes = process.env.NEXT_PUBLIC_DEVELOPER_DOCS
'./apps/**/*',
'develop-docs/**/*',
'node_modules/@esbuild/darwin-arm64',
'*.png',
'*.gif',
],
'/platform-redirect': ['**/*.gif', 'public/mdx-images/**/*', '*.pdf'],
'\\[\\[\\.\\.\\.path\\]\\]': [
Expand All @@ -33,7 +35,7 @@ if (
}

/** @type {import('next').NextConfig} */
const nextConfig = {
module.exports = {
pageExtensions: ['js', 'jsx', 'mdx', 'ts', 'tsx'],
trailingSlash: true,
serverExternalPackages: ['rehype-preset-minify'],
Expand Down Expand Up @@ -64,43 +66,43 @@ const nextConfig = {
},
};

module.exports = withSentryConfig(nextConfig, {
org: 'sentry',
project: process.env.NEXT_PUBLIC_DEVELOPER_DOCS ? 'develop-docs' : 'docs',
// module.exports = withSentryConfig(nextConfig, {
// org: 'sentry',
// project: process.env.NEXT_PUBLIC_DEVELOPER_DOCS ? 'develop-docs' : 'docs',

// Suppresses source map uploading logs during build
silent: !process.env.CI,
// // Suppresses source map uploading logs during build
// silent: !process.env.CI,

// Upload a larger set of source maps for prettier stack traces (increases build time)
widenClientFileUpload: true,
// // Upload a larger set of source maps for prettier stack traces (increases build time)
// widenClientFileUpload: true,

// Transpiles SDK to be compatible with IE11 (increases bundle size)
transpileClientSDK: true,
// // Transpiles SDK to be compatible with IE11 (increases bundle size)
// transpileClientSDK: true,

// Hides source maps from generated client bundles
hideSourceMaps: true,
// // Hides source maps from generated client bundles
// hideSourceMaps: true,

// Automatically tree-shake Sentry logger statements to reduce bundle size
disableLogger: true,
// // Automatically tree-shake Sentry logger statements to reduce bundle size
// disableLogger: true,

// Enables automatic instrumentation of Vercel Cron Monitors
// See the following for more information:
// https://docs.sentry.io/product/crons/
// https://vercel.com/docs/cron-jobs
automaticVercelMonitors: true,
// // Enables automatic instrumentation of Vercel Cron Monitors
// // See the following for more information:
// // https://docs.sentry.io/product/crons/
// // https://vercel.com/docs/cron-jobs
// automaticVercelMonitors: true,

reactComponentAnnotation: {
enabled: true,
},
// reactComponentAnnotation: {
// enabled: true,
// },

unstable_sentryWebpackPluginOptions: {
applicationKey: 'sentry-docs',
},
// unstable_sentryWebpackPluginOptions: {
// applicationKey: 'sentry-docs',
// },

_experimental: {
thirdPartyOriginStackFrames: true,
},
});
// _experimental: {
// thirdPartyOriginStackFrames: true,
// },
// });

process.on('warning', warning => {
if (warning.code === 'DEP0040') {
Expand Down
4 changes: 2 additions & 2 deletions src/components/codeHighlights/codeHighlights.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import {Children, cloneElement, ReactElement, useEffect, useRef, useState} from 'react';
import {Check, Clipboard} from 'react-feather';
import styled from '@emotion/styled';
import * as Sentry from '@sentry/nextjs';

// import * as Sentry from '@sentry/nextjs';
import {cleanCodeSnippet, useCleanSnippetInClipboard} from '../codeBlock';

type ChildrenItem = ReturnType<typeof Children.toArray>[number] | React.ReactNode;
Expand Down Expand Up @@ -103,7 +103,7 @@ export function HighlightBlock({
setCopied(true);
setTimeout(() => setCopied(false), 1200);
} catch (error) {
Sentry.captureException(error);
// Sentry.captureException(error);
setCopied(false);
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/expandable/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import {ReactNode, useCallback, useEffect, useRef, useState} from 'react';
import {ChevronDownIcon, ChevronRightIcon} from '@radix-ui/react-icons';
import * as Sentry from '@sentry/nextjs';

// import * as Sentry from '@sentry/nextjs';
// explicitly not usig CSS modules here
// because there's some prerendered content that depends on these exact class names
import '../callout/styles.scss';
Expand Down Expand Up @@ -106,7 +106,7 @@ export function Expandable({
setCopied(true);
setTimeout(() => setCopied(false), 1200);
} catch (error) {
Sentry.captureException(error);
// Sentry.captureException(error);
setCopied(false);
}
},
Expand Down
4 changes: 2 additions & 2 deletions src/components/search/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import {Fragment, useCallback, useEffect, useRef, useState} from 'react';
import {ArrowRightIcon} from '@radix-ui/react-icons';
import {Button} from '@radix-ui/themes';
import {captureException} from '@sentry/nextjs';
// import {captureException} from '@sentry/nextjs';
import {
Hit,
Result,
Expand Down Expand Up @@ -244,7 +244,7 @@ export function Search({
positions: [position + 1],
});
} catch (error) {
captureException(error);
// captureException(error);
}
}, []);

Expand Down
File renamed without changes.
File renamed without changes.
17 changes: 0 additions & 17 deletions src/pages/_error.jsx

This file was deleted.

Loading