We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3c3c2c commit f04718dCopy full SHA for f04718d
lib/utils.ts
@@ -70,10 +70,8 @@ export const getAppConfig = cache(async (headers: Headers): Promise<AppConfig> =
70
// generate a hover color for the accent color by mixing it with 20% black
71
export function getStyles(appConfig: AppConfig) {
72
const { accent, accentDark } = appConfig;
73
- const hasCustomAccentColor =
74
- process.env.NODE_ENV === 'development' || accent !== APP_CONFIG_DEFAULTS.accent;
75
- const hasCustomAccentDarkColor =
76
- process.env.NODE_ENV === 'development' || accentDark !== APP_CONFIG_DEFAULTS.accentDark;
+ const hasCustomAccentColor = 'accent' in appConfig;
+ const hasCustomAccentDarkColor = 'accentDark' in appConfig;
77
78
return [
79
hasCustomAccentColor
0 commit comments