Skip to content

Commit 41848fc

Browse files
committed
Update
1 parent bba5659 commit 41848fc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+1057
-5523
lines changed

.env.example

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
NEXT_PUBLIC_API_HOST="https://telegram.koval.page"
22
BACKEND_SECRET="xxxxx..."
3-
SENTRY_AUTH_TOKEN="sntrys_eyJ..."

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,3 @@ next-env.d.ts
3838
.idea
3939

4040
certificates
41-
# Sentry Config File
42-
.env.sentry-build-plugin

.npmrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
ignore-scripts = false
2+
unsafe-perm = true
3+

next.config.ts

Lines changed: 1 addition & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
1-
import { setupDevPlatform } from '@cloudflare/next-on-pages/next-dev';
2-
import { withSentryConfig } from "@sentry/nextjs";
31
import type { NextConfig } from "next";
42

53
const production = process.env.NODE_ENV === "production";
64

7-
if (!production) {
8-
setupDevPlatform();
9-
}
10-
115
const nextConfig: NextConfig = {
126
compiler: {
137
removeConsole: production,
@@ -19,7 +13,6 @@ const nextConfig: NextConfig = {
1913
experimental: {
2014
optimizePackageImports: [
2115
'@reduxjs/toolkit',
22-
'@sentry/nextjs',
2316
'@vkontakte/icons',
2417
'@vkontakte/vkui',
2518
'clsx',
@@ -29,7 +22,6 @@ const nextConfig: NextConfig = {
2922
'lucide-react',
3023
'react',
3124
'react-dom',
32-
'react-intersection-observer',
3325
'react-markdown',
3426
'react-player',
3527
'react-redux',
@@ -40,44 +32,4 @@ const nextConfig: NextConfig = {
4032
},
4133
};
4234

43-
export default withSentryConfig(nextConfig, {
44-
// For all available options, see:
45-
// https://github.com/getsentry/sentry-webpack-plugin#options
46-
47-
org: "tfeed",
48-
project: "javascript-nextjs",
49-
50-
// Only print logs for uploading source maps in CI
51-
silent: !process.env.CI,
52-
53-
// For all available options, see:
54-
// https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/
55-
56-
// Upload a larger set of source maps for prettier stack traces (increases build time)
57-
widenClientFileUpload: true,
58-
59-
// Automatically annotate React components to show their full name in breadcrumbs and session replay
60-
reactComponentAnnotation: {
61-
enabled: true,
62-
},
63-
64-
// Uncomment to route browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers.
65-
// This can increase your server load as well as your hosting bill.
66-
// Note: Check that the configured route will not match with your Next.js middleware, otherwise reporting of client-
67-
// side errors will fail.
68-
// tunnelRoute: "/monitoring",
69-
70-
// Hides source maps from generated client bundles
71-
sourcemaps: {
72-
deleteSourcemapsAfterUpload: true
73-
},
74-
75-
// Automatically tree-shake Sentry logger statements to reduce bundle size
76-
disableLogger: true,
77-
78-
// Enables automatic instrumentation of Vercel Cron Monitors. (Does not yet work with App Router route handlers.)
79-
// See the following for more information:
80-
// https://docs.sentry.io/product/crons/
81-
// https://vercel.com/docs/cron-jobs
82-
automaticVercelMonitors: true,
83-
});
35+
module.exports = nextConfig;

package.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
"dependencies": {
1717
"@next/third-parties": "^15.4.4",
1818
"@reduxjs/toolkit": "^2.9.0",
19-
"@sentry/nextjs": "^9.46.0",
20-
"@vercel/speed-insights": "^1.2.0",
2119
"@vkontakte/icons": "^2.170.0",
2220
"@vkontakte/vkui": "^7.6.0",
2321
"axios": "^1.12.0",
@@ -30,20 +28,17 @@
3028
"next": "^15.4.7",
3129
"normalize.css": "^8.0.1",
3230
"react": "^19.2.0",
33-
"react-dom": "^19.1.0",
31+
"react-dom": "^19.2.0",
3432
"react-i18next": "^16.2.3",
35-
"react-intersection-observer": "^9.16.0",
3633
"react-markdown": "^10.1.0",
3734
"react-player": "^2.16.1",
3835
"react-redux": "^9.2.0",
3936
"react-virtuoso": "^4.14.1",
4037
"spoiled": "^0.4.0",
4138
"swr": "^2.3.6",
42-
"tailwind-merge": "^3.3.1",
43-
"zod": "^4.1.11"
39+
"tailwind-merge": "^3.3.1"
4440
},
4541
"devDependencies": {
46-
"@cloudflare/next-on-pages": "^1.13.16",
4742
"@emotion/react": "^11.14.0",
4843
"@types/lodash": "^4.17.20",
4944
"@types/node": "^24.9.2",

0 commit comments

Comments
 (0)