Skip to content

Commit

Permalink
chore(deps): upgrade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
IGassmann committed Aug 31, 2024
1 parent 93a8236 commit 00bc2b0
Show file tree
Hide file tree
Showing 5 changed files with 7,462 additions and 3,116 deletions.
55 changes: 9 additions & 46 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,53 +4,15 @@ const { withSentryConfig } = require('@sentry/nextjs');
/** @type {import('next').NextConfig} */
const nextConfig = {
eslint: { ignoreDuringBuilds: true },

// Optional build-time configuration for Sentry.
// See https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/#extend-nextjs-configuration
sentry: {
// Tunnel sentry events to help circumvent ad-blockers.
tunnelRoute: '/api/sentry',
},
webpack(config, { webpack }) {
// Configures webpack to handle SVG files with SVGR. SVGR optimizes and transforms SVG files
// into React components. See https://react-svgr.com/docs/next/

// Grab the existing rule that handles SVG imports
// @ts-ignore - this is a private property that is not typed
const fileLoaderRule = config.module.rules.find((rule) => rule.test?.test?.('.svg'));

config.module.rules.push(
// Reapply the existing rule, but only for svg imports ending in ?url
{
...fileLoaderRule,
test: /\.svg$/i,
resourceQuery: /url/, // *.svg?url
experimental: {
turbo: {
rules: {
'*.svg': {
loaders: ['@svgr/webpack'],
as: '*.js',
},
},
// Convert all other *.svg imports to React components
{
test: /\.svg$/i,
issuer: fileLoaderRule.issuer,
resourceQuery: { not: [...fileLoaderRule.resourceQuery.not, /url/] }, // exclude if *.svg?url
use: ['@svgr/webpack'],
},
);

// Modify the file loader rule to ignore *.svg, since we have it handled now.
fileLoaderRule.exclude = /\.svg$/i;

// Tree-shake optional Sentry debug code in production builds.
// See https://docs.sentry.io/platforms/javascript/guides/nextjs/configuration/tree-shaking
config.plugins.push(
new webpack.DefinePlugin({
__SENTRY_DEBUG__: false,
__SENTRY_TRACING__: false,
__RRWEB_EXCLUDE_IFRAME__: true,
__RRWEB_EXCLUDE_SHADOW_DOM__: true,
__SENTRY_EXCLUDE_REPLAY_WORKER__: true,
}),
);

return config;
},
},
};

Expand All @@ -66,6 +28,7 @@ const nextConfig = {
*/
const sentryWebpackPluginOptions = {
silent: true,
tunnelRoute: '/api/sentry', // Tunnel sentry events to help circumvent ad-blockers
};

// Make sure adding Sentry options is the last code to run before exporting, to
Expand Down
36 changes: 21 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"env:pull": "vercel env pull .env.local",
"env:add": "vercel env add",
"env:rm": "vercel env rm",
"dev": "next dev",
"dev": "next dev --turbo",
"dev:debug": "cross-env NODE_OPTIONS='--inspect' next dev",
"lint": "next lint --ignore-path ./.gitignore --fix",
"format": "prettier . --write",
Expand All @@ -26,16 +26,16 @@
"preinstall": "npx only-allow pnpm"
},
"dependencies": {
"@clerk/nextjs": "5.1.3",
"@headlessui/react": "2.0.0-alpha.4",
"@clerk/nextjs": "5.3.7",
"@headlessui/react": "2.1.3",
"@headlessui/tailwindcss": "0.2.1",
"@heroicons/react": "2.1.3",
"@heroicons/react": "2.1.5",
"@segment/analytics-next": "1.66.0",
"@segment/analytics-node": "2.1.2",
"@sentry/nextjs": "8.13.0",
"next": "14.2.5",
"react": "18.3.1",
"react-dom": "18.3.1",
"@sentry/nextjs": "8.27.0",
"next": "15.0.0-canary.136",
"react": "19.0.0-rc-7771d3a7-20240827",
"react-dom": "19.0.0-rc-7771d3a7-20240827",
"tailwind-merge": "2.2.2"
},
"devDependencies": {
Expand All @@ -46,32 +46,38 @@
"@ianvs/prettier-plugin-sort-imports": "4.2.1",
"@svgr/webpack": "8.1.0",
"@tailwindcss/forms": "0.5.7",
"@types/node": "~20.13.0",
"@types/react": "18.3.3",
"@types/node": "20.x",
"@types/react": "npm:types-react-dom@rc",
"@types/react-dom": "npm:types-react-dom@rc",
"@typescript-eslint/eslint-plugin": "7.8.0",
"autoprefixer": "10.4.19",
"commitizen": "4.3.0",
"cross-env": "7.0.3",
"eslint": "8.57.0",
"eslint-config-airbnb": "19.0.4",
"eslint-config-airbnb-typescript": "18.0.0",
"eslint-config-next": "14.2.1",
"eslint-config-next": "15.0.0-canary.136",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-eslint-comments": "3.2.0",
"eslint-plugin-tsdoc": "0.3.0",
"eslint-plugin-unicorn": "55.0.0",
"husky": "9.0.11",
"knip": "5.17.3",
"lint-staged": "15.2.2",
"next-router-mock": "0.9.13",
"postcss": "8.4.38",
"prettier": "3.2.5",
"prettier-plugin-tailwindcss": "0.6.5",
"tailwindcss": "3.4.4",
"type-fest": "4.23.0",
"typescript": "5.4.3",
"tailwindcss": "3.4.10",
"type-fest": "4.26.0",
"typescript": "5.5.4",
"vercel": "33.6.3"
},
"pnpm": {
"overrides": {
"@types/react": "npm:types-react@rc",
"@types/react-dom": "npm:types-react-dom@rc"
}
},
"engines": {
"node": "20.x",
"pnpm": "8.15.5"
Expand Down
Loading

0 comments on commit 00bc2b0

Please sign in to comment.