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
12 changes: 5 additions & 7 deletions .github/workflows/build-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,13 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 8
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
# cache: "pnpm"
node-version-file: .nvmrc

- name: Install pnpm
uses: pnpm/action-setup@v4

- name: Setup Expo and EAS
uses: expo/expo-github-action@v8
Expand All @@ -32,7 +30,7 @@ jobs:

- name: Install dependencies
run: |
pnpm install --no-frozen-lockfile
pnpm install --frozen-lockfile

- name: Setup Env Variables
# grab the env vars from {secrets.GITHUB_ENV} and write them to the env file
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ jobs:
- name: Setup
uses: ./tooling/github/setup

- name: HTTP security contracts
run: pnpm test:security

- name: Copy env
shell: bash
run: cp .env.example .env
Expand Down Expand Up @@ -54,4 +57,4 @@ jobs:
uses: ./tooling/github/setup

- name: Typecheck
run: turbo typecheck
run: pnpm exec turbo typecheck
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20
22.23.4
11 changes: 11 additions & 0 deletions apps/nextjs/instrumentation.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
export async function register() {
if (process.env.NEXT_RUNTIME === "nodejs") {
const { installEmudhraDistrust } = await import(
"./security/emudhra-default-ca.mjs"
);
installEmudhraDistrust();
await import("./sentry.server.config");
} else if (process.env.NEXT_RUNTIME === "edge") {
await import("./sentry.edge.config");
}
}
73 changes: 32 additions & 41 deletions apps/nextjs/next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,44 +1,35 @@
import { withSentryConfig } from "@sentry/nextjs";

/** @type {import('next').NextConfig} */
const nextConfig = {
experimental: { missingSuspenseWithCSRBailout: false },
};

export default withSentryConfig(
nextConfig,
{
// For all available options, see:
// https://github.com/getsentry/sentry-webpack-plugin#options

// Suppresses source map uploading logs during build
silent: true,
org: "warriorborgs-3256",
project: "javascript-nextjs",
},
{
// For all available options, see:
// https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/

// 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,

// Routes browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers (increases server load)
tunnelRoute: "/monitoring",

// Hides source maps from generated client bundles
hideSourceMaps: 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,
},
);
const nextConfig = {};

export default withSentryConfig(nextConfig, {
// For all available options, see:
// https://github.com/getsentry/sentry-webpack-plugin#options

// Suppresses source map uploading logs during build
silent: true,
org: "warriorborgs-3256",
project: "javascript-nextjs",

// For all available options, see:
// https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/

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

// Routes browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers (increases server load)
tunnelRoute: "/monitoring",

// Hides source maps from generated client bundles
sourcemaps: { deleteSourcemapsAfterUpload: 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,
});
14 changes: 7 additions & 7 deletions apps/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
"@radix-ui/react-toggle": "^1.0.3",
"@radix-ui/react-toggle-group": "^1.0.4",
"@radix-ui/react-tooltip": "^1.0.7",
"@sentry/browser": "^7.102.1",
"@sentry/nextjs": "^7.102.1",
"@sentry/browser": "8.55.2",
"@sentry/nextjs": "8.55.2",
"@supabase/auth-helpers-nextjs": "^0.9.0",
"@supabase/auth-ui-react": "^0.4.7",
"@supabase/auth-ui-shared": "^0.1.8",
Expand All @@ -53,14 +53,14 @@
"@trpc/next": "11.0.0-next-beta.289",
"@trpc/react-query": "11.0.0-next-beta.289",
"@trpc/server": "11.0.0-next-beta.289",
"axios": "^1.6.7",
"axios": "1.20.0",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.0",
"cmdk": "^0.2.1",
"date-fns": "^3.3.1",
"embla-carousel-react": "8.0.0-rc22",
"express": "^4.18.2",
"next": "14.1.0",
"express": "4.22.3",
"next": "15.5.28",
"next-themes": "^0.2.1",
"react": "^18.2.0",
"react-day-picker": "^8.10.0",
Expand All @@ -80,7 +80,7 @@
"@types/react-dom": "^18",
"autoprefixer": "^10.4.16",
"eslint": "^8.56.0",
"eslint-config-next": "14.1.0",
"eslint-config-next": "15.5.28",
"postcss": "^8",
"tailwindcss": "3.4.1",
"typescript": "^5.3.3"
Expand All @@ -90,4 +90,4 @@
"keywords": [],
"author": "",
"license": "ISC"
}
}
Loading
Loading