Skip to content

Commit

Permalink
fix: fixed sentry errors on 404 pages
Browse files Browse the repository at this point in the history
  • Loading branch information
ovflowd committed Nov 27, 2023
1 parent a7b2ca3 commit 331d328
Show file tree
Hide file tree
Showing 6 changed files with 121 additions and 818 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/translations-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ on:
- '!i18n/locales/en.json'

permissions:
# This permission is required by `stefanzweifel/git-auto-commit-action`
contents: write
actions: read
# This permission is required by `thollander/actions-comment-pull-request`
pull-requests: write

jobs:
comment_on_translation_pr:
Expand All @@ -28,10 +32,6 @@ jobs:
name: Comment on Translation PR
runs-on: ubuntu-latest

permissions:
# This permission is required by `thollander/actions-comment-pull-request`
pull-requests: write

steps:
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
Expand Down Expand Up @@ -59,10 +59,6 @@ jobs:
name: Format Crowdin Pull Request
runs-on: ubuntu-latest

permissions:
# This permission is required by `stefanzweifel/git-auto-commit-action`
contents: write

steps:
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
Expand Down
2 changes: 2 additions & 0 deletions app/[locale]/not-found.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client';

import { useTranslations } from 'next-intl';
import type { FC } from 'react';

Expand Down
2 changes: 0 additions & 2 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@ const nextConfig = {
],
// Removes the warning regarding the WebPack Build Worker
webpackBuildWorker: false,
// Sentry Profiling Module should be treated as an external symbol
serverComponentsExternalPackages: ['@sentry/profiling-node'],
},
};

Expand Down
Loading

0 comments on commit 331d328

Please sign in to comment.