Merge pull request #1559 from ajnart/remove-annoying-prints
🔇 Remove unnecessary console logs
This commit is contained in:
@@ -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(
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user