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
669f9673
Commit
669f9673
authored
Sep 15, 2022
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
disable pages pre-build
parent
81373635
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
12 additions
and
15 deletions
+12
-15
Dockerfile
Dockerfile
+5
-6
getStaticPaths.ts
lib/next/account/getStaticPaths.ts
+1
-3
api_key.tsx
pages/[network_type]/[network_sub_type]/account/api_key.tsx
+1
-1
custom_abi.tsx
.../[network_type]/[network_sub_type]/account/custom_abi.tsx
+1
-1
public_tags_request.tsx
..._type]/[network_sub_type]/account/public_tags_request.tsx
+1
-1
tag_address.tsx
...[network_type]/[network_sub_type]/account/tag_address.tsx
+1
-1
tag_transaction.tsx
...work_type]/[network_sub_type]/account/tag_transaction.tsx
+1
-1
watchlist.tsx
...s/[network_type]/[network_sub_type]/account/watchlist.tsx
+1
-1
No files found.
Dockerfile
View file @
669f9673
...
@@ -4,16 +4,10 @@ FROM node:16-alpine AS deps
...
@@ -4,16 +4,10 @@ FROM node:16-alpine AS deps
RUN
apk add
--no-cache
libc6-compat
RUN
apk add
--no-cache
libc6-compat
WORKDIR
/app
WORKDIR
/app
ARG
SENTRY_DSN
ARG
NEXT_PUBLIC_SENTRY_DSN
ARG
SENTRY_CSP_REPORT_URI
ARG
SENTRY_AUTH_TOKEN
# Install dependencies based on the preferred package manager
# Install dependencies based on the preferred package manager
COPY
package.json yarn.lock ./
COPY
package.json yarn.lock ./
RUN
yarn
--frozen-lockfile
RUN
yarn
--frozen-lockfile
# Rebuild the source code only when needed
# Rebuild the source code only when needed
FROM
node:16-alpine AS builder
FROM
node:16-alpine AS builder
WORKDIR
/app
WORKDIR
/app
...
@@ -25,6 +19,11 @@ COPY . .
...
@@ -25,6 +19,11 @@ COPY . .
# Uncomment the following line in case you want to disable telemetry during the build.
# Uncomment the following line in case you want to disable telemetry during the build.
# ENV NEXT_TELEMETRY_DISABLED 1
# ENV NEXT_TELEMETRY_DISABLED 1
ARG
SENTRY_DSN
ARG
NEXT_PUBLIC_SENTRY_DSN
ARG
SENTRY_CSP_REPORT_URI
ARG
SENTRY_AUTH_TOKEN
RUN
yarn build
RUN
yarn build
# Production image, copy all the files and run next
# Production image, copy all the files and run next
...
...
lib/next/account/getStaticPaths.ts
View file @
669f9673
import
type
{
GetStaticPaths
}
from
'
next
'
;
import
type
{
GetStaticPaths
}
from
'
next
'
;
import
getAvailablePaths
from
'
lib/networks/getAvailablePaths
'
;
export
const
getStaticPaths
:
GetStaticPaths
=
async
()
=>
{
export
const
getStaticPaths
:
GetStaticPaths
=
async
()
=>
{
return
{
paths
:
getAvailablePaths
(),
fallback
:
fals
e
};
return
{
paths
:
[],
fallback
:
tru
e
};
};
};
pages/[network_type]/[network_sub_type]/account/api_key.tsx
View file @
669f9673
...
@@ -15,7 +15,7 @@ type Props = {
...
@@ -15,7 +15,7 @@ type Props = {
}
}
const
ApiKeysPage
:
NextPage
<
Props
>
=
({
pageParams
}:
Props
)
=>
{
const
ApiKeysPage
:
NextPage
<
Props
>
=
({
pageParams
}:
Props
)
=>
{
const
title
=
getNetworkTitle
(
pageParams
);
const
title
=
getNetworkTitle
(
pageParams
||
{}
);
return
(
return
(
<>
<>
<
Head
><
title
>
{
title
}
</
title
></
Head
>
<
Head
><
title
>
{
title
}
</
title
></
Head
>
...
...
pages/[network_type]/[network_sub_type]/account/custom_abi.tsx
View file @
669f9673
...
@@ -15,7 +15,7 @@ type Props = {
...
@@ -15,7 +15,7 @@ type Props = {
}
}
const
CustomAbiPage
:
NextPage
<
Props
>
=
({
pageParams
}:
Props
)
=>
{
const
CustomAbiPage
:
NextPage
<
Props
>
=
({
pageParams
}:
Props
)
=>
{
const
title
=
getNetworkTitle
(
pageParams
);
const
title
=
getNetworkTitle
(
pageParams
||
{}
);
return
(
return
(
<>
<>
<
Head
><
title
>
{
title
}
</
title
></
Head
>
<
Head
><
title
>
{
title
}
</
title
></
Head
>
...
...
pages/[network_type]/[network_sub_type]/account/public_tags_request.tsx
View file @
669f9673
...
@@ -15,7 +15,7 @@ type Props = {
...
@@ -15,7 +15,7 @@ type Props = {
}
}
const
PublicTagsPage
:
NextPage
<
Props
>
=
({
pageParams
}:
Props
)
=>
{
const
PublicTagsPage
:
NextPage
<
Props
>
=
({
pageParams
}:
Props
)
=>
{
const
title
=
getNetworkTitle
(
pageParams
);
const
title
=
getNetworkTitle
(
pageParams
||
{}
);
return
(
return
(
<>
<>
<
Head
><
title
>
{
title
}
</
title
></
Head
>
<
Head
><
title
>
{
title
}
</
title
></
Head
>
...
...
pages/[network_type]/[network_sub_type]/account/tag_address.tsx
View file @
669f9673
...
@@ -15,7 +15,7 @@ type Props = {
...
@@ -15,7 +15,7 @@ type Props = {
}
}
const
AddressTagsPage
:
NextPage
<
Props
>
=
({
pageParams
}:
Props
)
=>
{
const
AddressTagsPage
:
NextPage
<
Props
>
=
({
pageParams
}:
Props
)
=>
{
const
title
=
getNetworkTitle
(
pageParams
);
const
title
=
getNetworkTitle
(
pageParams
||
{}
);
return
(
return
(
<>
<>
<
Head
><
title
>
{
title
}
</
title
></
Head
>
<
Head
><
title
>
{
title
}
</
title
></
Head
>
...
...
pages/[network_type]/[network_sub_type]/account/tag_transaction.tsx
View file @
669f9673
...
@@ -15,7 +15,7 @@ type Props = {
...
@@ -15,7 +15,7 @@ type Props = {
}
}
const
TransactionTagsPage
:
NextPage
<
Props
>
=
({
pageParams
}:
Props
)
=>
{
const
TransactionTagsPage
:
NextPage
<
Props
>
=
({
pageParams
}:
Props
)
=>
{
const
title
=
getNetworkTitle
(
pageParams
);
const
title
=
getNetworkTitle
(
pageParams
||
{}
);
return
(
return
(
<>
<>
<
Head
><
title
>
{
title
}
</
title
></
Head
>
<
Head
><
title
>
{
title
}
</
title
></
Head
>
...
...
pages/[network_type]/[network_sub_type]/account/watchlist.tsx
View file @
669f9673
...
@@ -15,7 +15,7 @@ type Props = {
...
@@ -15,7 +15,7 @@ type Props = {
}
}
const
WatchListPage
:
NextPage
<
Props
>
=
({
pageParams
}:
Props
)
=>
{
const
WatchListPage
:
NextPage
<
Props
>
=
({
pageParams
}:
Props
)
=>
{
const
title
=
getNetworkTitle
(
pageParams
);
const
title
=
getNetworkTitle
(
pageParams
||
{}
);
return
(
return
(
<>
<>
<
Head
>
<
Head
>
...
...
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