fix: enforce deployment priorities and completely strip client sentry bundle
This commit is contained in:
@@ -210,6 +210,13 @@ jobs:
|
|||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: 🚦 Priority Gate Check
|
||||||
|
env:
|
||||||
|
GITEA_PAT: ${{ secrets.GITEA_PAT }}
|
||||||
|
CURRENT_RUN_ID: ${{ github.run_id }}
|
||||||
|
CURRENT_TARGET: ${{ needs.prepare.outputs.target }}
|
||||||
|
run: bash scripts/priority-gate.sh
|
||||||
|
|
||||||
- name: 🔐 Registry Auth
|
- name: 🔐 Registry Auth
|
||||||
id: auth
|
id: auth
|
||||||
env:
|
env:
|
||||||
@@ -289,6 +296,13 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: 🚦 Priority Gate Check
|
||||||
|
env:
|
||||||
|
GITEA_PAT: ${{ secrets.GITEA_PAT }}
|
||||||
|
CURRENT_RUN_ID: ${{ github.run_id }}
|
||||||
|
CURRENT_TARGET: ${{ needs.prepare.outputs.target }}
|
||||||
|
run: bash scripts/priority-gate.sh
|
||||||
- name: 📝 Generate Environment
|
- name: 📝 Generate Environment
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// Sentry initialization move to GlitchtipErrorReportingService to allow lazy-loading
|
// Sentry initialization move to GlitchtipErrorReportingService to allow lazy-loading
|
||||||
// for PageSpeed 100 optimizations. This file is now empty to prevent the SDK
|
// for PageSpeed 100 optimizations. This file is now empty to prevent the SDK
|
||||||
// from being included in the initial JS bundle.
|
// from being included in the initial JS bundle.
|
||||||
import * as Sentry from '@sentry/nextjs';
|
|
||||||
export const onRouterTransitionStart = Sentry.captureRouterTransitionStart;
|
export {};
|
||||||
|
|||||||
@@ -46,6 +46,12 @@ const nextConfig = {
|
|||||||
env: {
|
env: {
|
||||||
NEXT_PUBLIC_APP_VERSION: process.env.NEXT_PUBLIC_APP_VERSION || process.env.npm_package_version || 'dev',
|
NEXT_PUBLIC_APP_VERSION: process.env.NEXT_PUBLIC_APP_VERSION || process.env.npm_package_version || 'dev',
|
||||||
},
|
},
|
||||||
|
sentry: {
|
||||||
|
disableClientWebpackPlugin: true,
|
||||||
|
autoInstrumentServerFunctions: false,
|
||||||
|
autoInstrumentMiddleware: false,
|
||||||
|
widenClientFileUpload: false,
|
||||||
|
},
|
||||||
// Prevent webpack from restarting when .env files are touched via Docker volume mount
|
// Prevent webpack from restarting when .env files are touched via Docker volume mount
|
||||||
webpack: (config, { dev, isServer }) => {
|
webpack: (config, { dev, isServer }) => {
|
||||||
// Completely strip Next.js forced legacy polyfills for modern browser targets
|
// Completely strip Next.js forced legacy polyfills for modern browser targets
|
||||||
|
|||||||
Reference in New Issue
Block a user