Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
frontend
Commits
fe550662
Commit
fe550662
authored
Jun 21, 2024
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
disable next.js turbo mode
parent
66af4e4c
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
15 additions
and
9 deletions
+15
-9
getPageOgType.ts
lib/metadata/getPageOgType.ts
+1
-0
description.ts
lib/metadata/templates/description.ts
+1
-0
title.ts
lib/metadata/templates/title.ts
+1
-0
getPageType.ts
lib/mixpanel/getPageType.ts
+1
-0
next.config.js
next.config.js
+9
-8
nextjs-routes.d.ts
nextjs/nextjs-routes.d.ts
+1
-0
dev.preset.sh
tools/scripts/dev.preset.sh
+1
-1
No files found.
lib/metadata/getPageOgType.ts
View file @
fe550662
...
...
@@ -55,6 +55,7 @@ const OG_TYPE_DICT: Record<Route['pathname'], OGPageType> = {
'
/api/proxy
'
:
'
Regular page
'
,
'
/api/csrf
'
:
'
Regular page
'
,
'
/api/healthz
'
:
'
Regular page
'
,
'
/api/config
'
:
'
Regular page
'
,
'
/auth/auth0
'
:
'
Regular page
'
,
'
/auth/unverified-email
'
:
'
Regular page
'
,
};
...
...
lib/metadata/templates/description.ts
View file @
fe550662
...
...
@@ -59,6 +59,7 @@ const TEMPLATE_MAP: Record<Route['pathname'], string> = {
'
/api/proxy
'
:
DEFAULT_TEMPLATE
,
'
/api/csrf
'
:
DEFAULT_TEMPLATE
,
'
/api/healthz
'
:
DEFAULT_TEMPLATE
,
'
/api/config
'
:
DEFAULT_TEMPLATE
,
'
/auth/auth0
'
:
DEFAULT_TEMPLATE
,
'
/auth/unverified-email
'
:
DEFAULT_TEMPLATE
,
};
...
...
lib/metadata/templates/title.ts
View file @
fe550662
...
...
@@ -55,6 +55,7 @@ const TEMPLATE_MAP: Record<Route['pathname'], string> = {
'
/api/proxy
'
:
'
%network_name% node API proxy
'
,
'
/api/csrf
'
:
'
%network_name% node API CSRF token
'
,
'
/api/healthz
'
:
'
%network_name% node API health check
'
,
'
/api/config
'
:
'
%network_name% node API health check
'
,
'
/auth/auth0
'
:
'
%network_name% authentication
'
,
'
/auth/unverified-email
'
:
'
%network_name% unverified email
'
,
};
...
...
lib/mixpanel/getPageType.ts
View file @
fe550662
...
...
@@ -53,6 +53,7 @@ export const PAGE_TYPE_DICT: Record<Route['pathname'], string> = {
'
/api/proxy
'
:
'
Node API: Proxy
'
,
'
/api/csrf
'
:
'
Node API: CSRF token
'
,
'
/api/healthz
'
:
'
Node API: Health check
'
,
'
/api/config
'
:
'
Node API: Health check
'
,
'
/auth/auth0
'
:
'
Auth
'
,
'
/auth/unverified-email
'
:
'
Unverified email
'
,
};
...
...
next.config.js
View file @
fe550662
...
...
@@ -47,14 +47,15 @@ const moduleExports = {
productionBrowserSourceMaps
:
true
,
experimental
:
{
instrumentationHook
:
process
.
env
.
NEXT_OPEN_TELEMETRY_ENABLED
===
'
true
'
,
turbo
:
{
rules
:
{
'
*.svg
'
:
{
loaders
:
[
'
@svgr/webpack
'
],
as
:
'
*.js
'
,
},
},
},
// disabled as it is not stable yet
// turbo: {
// rules: {
// '*.svg': {
// loaders: [ '@svgr/webpack' ],
// as: '*.js',
// },
// },
// },
},
};
...
...
nextjs/nextjs-routes.d.ts
View file @
fe550662
...
...
@@ -15,6 +15,7 @@ declare module "nextjs-routes" {
|
StaticRoute
<
"
/accounts
"
>
|
DynamicRoute
<
"
/address/[hash]/contract-verification
"
,
{
"
hash
"
:
string
}
>
|
DynamicRoute
<
"
/address/[hash]
"
,
{
"
hash
"
:
string
}
>
|
StaticRoute
<
"
/api/config
"
>
|
StaticRoute
<
"
/api/csrf
"
>
|
StaticRoute
<
"
/api/healthz
"
>
|
StaticRoute
<
"
/api/log
"
>
...
...
tools/scripts/dev.preset.sh
View file @
fe550662
...
...
@@ -28,5 +28,5 @@ dotenv \
-v
NEXT_PUBLIC_GIT_TAG
=
$(
git describe
--tags
--abbrev
=
0
)
\
-e
$config_file
\
-e
$secrets_file
\
--
bash
-c
'./deploy/scripts/make_envs_script.sh && next dev -p $NEXT_PUBLIC_APP_PORT
--turbo
'
|
--
bash
-c
'./deploy/scripts/make_envs_script.sh && next dev -p $NEXT_PUBLIC_APP_PORT'
|
pino-pretty
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment