Commit 669f9673 authored by tom's avatar tom

disable pages pre-build

parent 81373635
......@@ -4,16 +4,10 @@ FROM node:16-alpine AS deps
RUN apk add --no-cache libc6-compat
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
COPY package.json yarn.lock ./
RUN yarn --frozen-lockfile
# Rebuild the source code only when needed
FROM node:16-alpine AS builder
WORKDIR /app
......@@ -25,6 +19,11 @@ COPY . .
# Uncomment the following line in case you want to disable telemetry during the build.
# 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
# Production image, copy all the files and run next
......
import type { GetStaticPaths } from 'next';
import getAvailablePaths from 'lib/networks/getAvailablePaths';
export const getStaticPaths: GetStaticPaths = async() => {
return { paths: getAvailablePaths(), fallback: false };
return { paths: [], fallback: true };
};
......@@ -15,7 +15,7 @@ type Props = {
}
const ApiKeysPage: NextPage<Props> = ({ pageParams }: Props) => {
const title = getNetworkTitle(pageParams);
const title = getNetworkTitle(pageParams || {});
return (
<>
<Head><title>{ title }</title></Head>
......
......@@ -15,7 +15,7 @@ type Props = {
}
const CustomAbiPage: NextPage<Props> = ({ pageParams }: Props) => {
const title = getNetworkTitle(pageParams);
const title = getNetworkTitle(pageParams || {});
return (
<>
<Head><title>{ title }</title></Head>
......
......@@ -15,7 +15,7 @@ type Props = {
}
const PublicTagsPage: NextPage<Props> = ({ pageParams }: Props) => {
const title = getNetworkTitle(pageParams);
const title = getNetworkTitle(pageParams || {});
return (
<>
<Head><title>{ title }</title></Head>
......
......@@ -15,7 +15,7 @@ type Props = {
}
const AddressTagsPage: NextPage<Props> = ({ pageParams }: Props) => {
const title = getNetworkTitle(pageParams);
const title = getNetworkTitle(pageParams || {});
return (
<>
<Head><title>{ title }</title></Head>
......
......@@ -15,7 +15,7 @@ type Props = {
}
const TransactionTagsPage: NextPage<Props> = ({ pageParams }: Props) => {
const title = getNetworkTitle(pageParams);
const title = getNetworkTitle(pageParams || {});
return (
<>
<Head><title>{ title }</title></Head>
......
......@@ -15,7 +15,7 @@ type Props = {
}
const WatchListPage: NextPage<Props> = ({ pageParams }: Props) => {
const title = getNetworkTitle(pageParams);
const title = getNetworkTitle(pageParams || {});
return (
<>
<Head>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment