Skip to content

Commit

Permalink
fix: ci test fail
Browse files Browse the repository at this point in the history
  • Loading branch information
RubenSmn committed Jul 12, 2023
1 parent a63ebe4 commit fcff58d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .env.development
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ NEXT_PUBLIC_API_NEW=http://127.0.0.1:4010/mock
NEXT_PUBLIC_BASE=
NEXT_PUBLIC_CONFIG_API=
NEXT_PUBLIC_COUNTRY_LEADER_BOARD_DISABLED=false
NEXT_PUBLIC_SERVER_CONFIG_DISABLED=
NEXT_PUBLIC_SERVER_CONFIG_DISABLED=true
24 changes: 12 additions & 12 deletions src/pages/_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@ import { useRouter } from 'next/router';
import Script from 'next/script';
import { userAgentFromString } from 'next/server';
import React from 'react';
import Layout from 'components/Layout';
import LayoutDashboard from 'components/LayoutDashboard';
import LayoutEmbed from 'components/LayoutEmbed';
import LayoutMobile from 'components/LayoutMobile';
import LayoutMobileB from 'components/LayoutMobileB';
import LayoutMobileC from 'components/LayoutMobileC';
import { DrawerProvider } from 'context/DrawerContext';
import { ConfigProvider, defaultConfig } from 'context/configContext';
import { CustomThemeProvider } from 'context/themeContext';
import { useLocalStorage, useEmbed } from 'hooks/globalHooks';
import { MapContextProvider } from 'mapContext';
import packageJson from '../../package.json';
import Layout from '../components/Layout';
import LayoutDashboard from '../components/LayoutDashboard';
import LayoutEmbed from '../components/LayoutEmbed';
import LayoutMobile from '../components/LayoutMobile';
import LayoutMobileB from '../components/LayoutMobileB';
import LayoutMobileC from '../components/LayoutMobileC';
import { DrawerProvider } from '../context/DrawerContext';
import { ConfigProvider, defaultConfig } from '../context/configContext';
import { CustomThemeProvider } from '../context/themeContext';
import { useLocalStorage, useEmbed } from '../hooks/globalHooks';
import { MapContextProvider } from '../mapContext';

log.warn(`Web Map Client version ${packageJson.version}`);

Expand Down Expand Up @@ -215,7 +215,7 @@ TreetrackerApp.getInitialProps = async (context) => {
const device = userAgentFromString(userAgent)?.device.type || 'desktop';

let config = defaultConfig;
if (!process.env.NEXT_PUBLIC_SERVER_CONFIG_DISABLED) {
if (process.env.NEXT_PUBLIC_SERVER_CONFIG_DISABLED !== 'true') {
const mapConfigRequest = await fetch(
// TODO: use the ENV var, currently results in a bug with the theme editor
// `${process.env.NEXT_PUBLIC_CONFIG_API}/config`,
Expand Down

0 comments on commit fcff58d

Please sign in to comment.