Skip to content

Commit 5f56779

Browse files
authored
fix: locale and layouts errors (#6134)
1 parent 9b37e2d commit 5f56779

File tree

4 files changed

+14
-51
lines changed

4 files changed

+14
-51
lines changed

.github/workflows/build.yml

-31
Original file line numberDiff line numberDiff line change
@@ -79,20 +79,6 @@ jobs:
7979
# regardless of having code changes or not
8080
fetch-depth: 1
8181

82-
- name: Restore Build Cache
83-
uses: actions/cache/restore@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
84-
with:
85-
path: |
86-
.turbo/cache
87-
.next/cache
88-
node_modules/.cache
89-
# We want to restore cache from local .npm caches, .next/cache and node_modules/.cache
90-
# As this should reduce build times, and the overall time for installing packages or running operations
91-
key: cache-build-${{ hashFiles('package-lock.json') }}-
92-
restore-keys: |
93-
cache-build-${{ hashFiles('package-lock.json') }}-
94-
cache-build-
95-
9682
- name: Set up Node.js
9783
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
9884
with:
@@ -132,20 +118,3 @@ jobs:
132118
# this should be a last resort in case by any chances the build memory gets too high
133119
# but in general this should never happen
134120
NODE_OPTIONS: '--max_old_space_size=4096'
135-
136-
- name: Save Build Cache
137-
# We want to store the Build Cache within Pull Requests or during pushes against the `main` branch
138-
# since caches created on the `main` (default) branch can be reused on Pull Requests and PRs coming from forks
139-
if: |
140-
github.event_name == 'push' || github.event_name == 'pull_request_target'
141-
uses: actions/cache/save@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
142-
with:
143-
path: |
144-
.turbo/cache
145-
.next/cache
146-
node_modules/.cache
147-
# Most of sibling Pull Requests will use the cache key based on the package-lock.json
148-
# We do also add a hashFiles for `.next/cache` as GitHub Actions only allows
149-
# One cache with same key to exist, so to ensure we always have a cache from the latest build
150-
# We add the hashFiles of `.next/cache` to the cache key of the Cache Entry
151-
key: cache-build-${{ hashFiles('package-lock.json') }}-${{ hashFiles('.next/cache/**') }}
File renamed without changes.

app/[locale]/not-found.tsx

+14-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1-
import NotFound from '@/app/not-found';
1+
import { useTranslations } from 'next-intl';
2+
import type { FC } from 'react';
23

3-
export default NotFound;
4+
const LocalizedNotFound: FC = () => {
5+
const t = useTranslations();
6+
7+
return (
8+
<div className="container">
9+
<h2>{t('pages.404.title')}</h2>
10+
<h3>{t('pages.404.description')}</h3>
11+
</div>
12+
);
13+
};
14+
15+
export default LocalizedNotFound;

app/not-found.tsx

-18
This file was deleted.

0 commit comments

Comments
 (0)