Merge pull request #1559 from ajnart/remove-annoying-prints

🔇 Remove unnecessary console logs
This commit is contained in:
Thomas Camlong
2023-11-07 17:07:48 +01:00
committed by GitHub
2 changed files with 0 additions and 3 deletions

View File

@@ -41,8 +41,6 @@ export const getFrontendConfig = async (name: string): Promise<ConfigType> => {
); );
} }
Consola.info(`Requested frontend content of configuration '${name}'`);
// If not, return the config
const someAppsWithoutProps = config.apps.filter( const someAppsWithoutProps = config.apps.filter(
(app) => (app) =>
app.integration?.properties.some( app.integration?.properties.some(

View File

@@ -42,7 +42,6 @@ const getTrpcConfiguration = () => ({
const getBaseUrl = () => { const getBaseUrl = () => {
if (typeof window !== 'undefined') return ''; // browser should use relative url if (typeof window !== 'undefined') return ''; // browser should use relative url
if (env.HOSTNAME) { if (env.HOSTNAME) {
console.log('Constructing internal hostname address using', env.HOSTNAME, env.NEXT_PUBLIC_PORT);
return `http://${env.HOSTNAME}:${env.NEXT_PUBLIC_PORT}`; return `http://${env.HOSTNAME}:${env.NEXT_PUBLIC_PORT}`;
} }
return `http://localhost:${env.NEXT_PUBLIC_PORT ?? 3000}`; // dev SSR should use localhost return `http://localhost:${env.NEXT_PUBLIC_PORT ?? 3000}`; // dev SSR should use localhost