From 8ecf78c60b17ed0733e2afdaaf3444f6d2bc1f74 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Wed, 27 Oct 2021 18:33:57 +0100 Subject: [PATCH] another config fix --- app.config.ts => app.config.js | 2 +- src/@hooks/useSiteMetadata/index.ts | 4 ++-- tsconfig.json | 8 +------- 3 files changed, 4 insertions(+), 10 deletions(-) rename app.config.ts => app.config.js (99%) diff --git a/app.config.ts b/app.config.js similarity index 99% rename from app.config.ts rename to app.config.js index a9be9aa7e..f8777636a 100644 --- a/app.config.ts +++ b/app.config.js @@ -1,4 +1,4 @@ -export default { +module.exports = { // URI of single metadata cache instance for all networks. // While ocean.js includes this value for each network as part of its ConfigHelper, // it is assumed to be the same for all networks. diff --git a/src/@hooks/useSiteMetadata/index.ts b/src/@hooks/useSiteMetadata/index.ts index a4be17e76..40f9d3259 100644 --- a/src/@hooks/useSiteMetadata/index.ts +++ b/src/@hooks/useSiteMetadata/index.ts @@ -1,11 +1,11 @@ import { UseSiteMetadata } from './types' import siteContent from '../../../content/site.json' -import siteConfig from '../../../app.config' +import appConfig from '../../../app.config' export function useSiteMetadata(): UseSiteMetadata { const siteMeta: UseSiteMetadata = { ...siteContent, - appConfig: siteConfig + appConfig } return siteMeta diff --git a/tsconfig.json b/tsconfig.json index 781813aea..4bdc6f922 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -29,11 +29,5 @@ "incremental": true }, "exclude": ["node_modules", ".next", "*.js"], - "include": [ - "./src/**/*", - "./tests/**/*", - "./next-env.d.ts", - "./content/**/*", - "app.config.ts" - ] + "include": ["./src/**/*", "./tests/**/*", "./next-env.d.ts", "./content/**/*"] }