Skip to content
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
9 changes: 7 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@
"extends": [
"next/core-web-vitals",
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "prettier"],
"root": true
"root": true,
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"extends": ["plugin:@typescript-eslint/recommended"]
}
]
}
6 changes: 6 additions & 0 deletions .git-hooks/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh
# Run lint before pushing to catch style/type issues early.
# Bypass with: git push --no-verify

echo "Running lint before push..."
npm run lint
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ yarn-error.log*
# vercel
.vercel

# sentry
.env.sentry-build-plugin

# typescript
*.tsbuildinfo
next-env.d.ts
27 changes: 26 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
const { withSentryConfig } = require('@sentry/nextjs');

/** @type {import('next').NextConfig} */
const nextConfig = {
// Required on Next.js 14 so `src/instrumentation.ts` is loaded (stable in Next 15).
experimental: {
instrumentationHook: true,
},
images: {
remotePatterns: [
{
Expand All @@ -22,4 +28,23 @@ const nextConfig = {
},
};

module.exports = nextConfig;
module.exports = withSentryConfig(nextConfig, {
// For all available options, see:
// https://www.npmjs.com/package/@sentry/webpack-plugin#options

org: 'tech-for-palestine',
project: 'ppm',

// Only print logs for uploading source maps in CI.
silent: !process.env.CI,

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

// Route browser requests to Sentry through a Next.js rewrite to circumvent
// ad-blockers. This can increase your server load as well as your hosting bill.
tunnelRoute: '/monitoring',

// Automatically tree-shake Sentry logger statements to reduce bundle size.
disableLogger: true,
});
Loading
Loading