Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Unhide User Interface
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Helmholtz Metadata Collaboration
HMC Public
unHIDE
Unhide User Interface
Commits
cb66106c
Commit
cb66106c
authored
1 month ago
by
FionaDmello
Browse files
Options
Downloads
Plain Diff
Merge branch 'dev' into feature/record-details-page
parents
87cf24e5
e3249609
No related branches found
No related tags found
1 merge request
!58
Draft: Feature Details Page
Pipeline
#504651
passed
1 month ago
Stage: General Checks
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
next.config.ts
+31
-1
31 additions, 1 deletion
next.config.ts
src/app/[locale]/layout.tsx
+0
-1
0 additions, 1 deletion
src/app/[locale]/layout.tsx
tsconfig.json
+6
-21
6 additions, 21 deletions
tsconfig.json
with
37 additions
and
23 deletions
next.config.ts
+
31
−
1
View file @
cb66106c
import
createNextIntlPlugin
from
"
next-intl/plugin
"
;
import
createNextIntlPlugin
from
"
next-intl/plugin
"
;
import
type
{
NextConfig
}
from
'
next
'
import
type
{
NextConfig
}
from
"
next
"
;
const
withNextIntl
=
createNextIntlPlugin
();
const
withNextIntl
=
createNextIntlPlugin
();
...
@@ -8,6 +8,36 @@ const nextConfig: NextConfig = {
...
@@ -8,6 +8,36 @@ const nextConfig: NextConfig = {
eslint
:
{
eslint
:
{
dirs
:
[
"
src
"
],
dirs
:
[
"
src
"
],
},
},
async
headers
()
{
return
[
{
source
:
"
/api/:path*
"
,
headers
:
[
{
key
:
"
Access-Control-Allow-Origin
"
,
value
:
"
*
"
,
// Set your origin
},
{
key
:
"
Access-Control-Allow-Methods
"
,
value
:
"
GET, OPTIONS
"
,
},
],
},
{
source
:
"
/:path*
"
,
headers
:
[
{
key
:
"
X-Frame-Options
"
,
value
:
"
DENY
"
,
},
{
key
:
"
Content-Security-Policy
"
,
value
:
"
frame-src 'none'
"
,
},
],
},
];
},
images
:
{
images
:
{
remotePatterns
:
[
remotePatterns
:
[
{
{
...
...
This diff is collapsed.
Click to expand it.
src/app/[locale]/layout.tsx
+
0
−
1
View file @
cb66106c
...
@@ -44,7 +44,6 @@ export default function RootLayout({
...
@@ -44,7 +44,6 @@ export default function RootLayout({
params
:
Promise
<
{
locale
:
string
}
>
;
params
:
Promise
<
{
locale
:
string
}
>
;
}
>
)
{
}
>
)
{
const
{
locale
}
=
React
.
use
(
params
);
const
{
locale
}
=
React
.
use
(
params
);
// Ensure that the incoming `locale` is valid
// Ensure that the incoming `locale` is valid
if
(
!
routing
.
locales
.
includes
(
locale
as
any
))
{
if
(
!
routing
.
locales
.
includes
(
locale
as
any
))
{
notFound
();
notFound
();
...
...
This diff is collapsed.
Click to expand it.
tsconfig.json
+
6
−
21
View file @
cb66106c
{
{
"compilerOptions"
:
{
"compilerOptions"
:
{
"lib"
:
[
"lib"
:
[
"dom"
,
"dom.iterable"
,
"esnext"
],
"dom"
,
"dom.iterable"
,
"esnext"
,
],
"allowJs"
:
true
,
"allowJs"
:
true
,
"skipLibCheck"
:
true
,
"skipLibCheck"
:
true
,
"strict"
:
true
,
"strict"
:
true
,
...
@@ -19,27 +15,16 @@
...
@@ -19,27 +15,16 @@
"incremental"
:
true
,
"incremental"
:
true
,
"plugins"
:
[
"plugins"
:
[
{
{
"name"
:
"next"
,
"name"
:
"next"
}
}
],
],
"paths"
:
{
"paths"
:
{
"@/*"
:
[
"@/*"
:
[
"./src/*"
],
"./src/*"
,
"@api/*"
:
[
"./src/app/api/*"
]
],
"@api/*"
:
[
"./src/app/api/*"
,
]
},
},
"downlevelIteration"
:
true
,
"downlevelIteration"
:
true
,
"target"
:
"ES2017"
"target"
:
"ES2017"
},
},
"include"
:
[
"include"
:
[
"next-env.d.ts"
,
"**/*.ts"
,
"**/*.tsx"
,
".next/types/**/*.ts"
],
"next-env.d.ts"
,
"exclude"
:
[
"node_modules"
]
"**/*.ts"
,
"**/*.tsx"
,
".next/types/**/*.ts"
,
],
"exclude"
:
[
"node_modules"
,
]
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment