chore(env): update EZOIC_ENABLED to NEXT_PUBLIC_EZOIC_ENABLED in environment variables
This commit is contained in:
+1
-1
@@ -66,5 +66,5 @@ CRON_SECRET="your-secret-key-here"
|
||||
# SENTRY_AUTH_TOKEN=sentry-auth-token
|
||||
|
||||
# GOOGLE_ADSENSE_ACCOUNT=ca-pub-xxxxxxxxxxxxxxxx
|
||||
# EZOIC_ENABLED=true
|
||||
# NEXT_PUBLIC_EZOIC_ENABLED=true
|
||||
# EZOIC_SITE_DOMAIN=prompts.chat
|
||||
+1
-1
@@ -190,7 +190,7 @@ export default async function RootLayout({
|
||||
{process.env.GOOGLE_ANALYTICS_ID && (
|
||||
<Analytics gaId={process.env.GOOGLE_ANALYTICS_ID} />
|
||||
)}
|
||||
{process.env.EZOIC_ENABLED === "true" && <EzoicAds />}
|
||||
{process.env.NEXT_PUBLIC_EZOIC_ENABLED === "true" && <EzoicAds />}
|
||||
<Providers locale={locale} messages={messages} theme={config.theme} branding={{ ...config.branding, useCloneBranding: config.homepage?.useCloneBranding }}>
|
||||
{isEmbedRoute || isKidsRoute ? (
|
||||
children
|
||||
|
||||
@@ -97,7 +97,7 @@ export default function PrivacyPage() {
|
||||
</p>
|
||||
</section>
|
||||
|
||||
{process.env.EZOIC_ENABLED === "true" && (
|
||||
{process.env.NEXT_PUBLIC_EZOIC_ENABLED === "true" && (
|
||||
<section className="space-y-3">
|
||||
<h2 className="text-lg font-semibold">Advertising & Ezoic</h2>
|
||||
<p className="text-muted-foreground">
|
||||
|
||||
@@ -704,7 +704,7 @@ export default async function PromptPage({ params }: PromptPageProps) {
|
||||
)}
|
||||
|
||||
{/* Ad Placement */}
|
||||
{process.env.EZOIC_ENABLED === "true" && <EzoicPlaceholder id={201} />}
|
||||
{process.env.NEXT_PUBLIC_EZOIC_ENABLED === "true" && <EzoicPlaceholder id={201} />}
|
||||
</TabsContent>
|
||||
|
||||
<TabsContent value="versions" className="mt-0">
|
||||
|
||||
@@ -159,7 +159,7 @@ export async function DiscoveryPrompts({ isHomepage = false }: DiscoveryPromptsP
|
||||
)}
|
||||
|
||||
{/* Ad Placement - after featured */}
|
||||
{isHomepage && process.env.EZOIC_ENABLED === "true" && (
|
||||
{isHomepage && process.env.NEXT_PUBLIC_EZOIC_ENABLED === "true" && (
|
||||
<section className="py-8 border-b">
|
||||
<div className="container max-w-2xl">
|
||||
<EzoicPlaceholder id={202} />
|
||||
@@ -218,7 +218,7 @@ export async function DiscoveryPrompts({ isHomepage = false }: DiscoveryPromptsP
|
||||
)}
|
||||
|
||||
{/* Ad Placement - after latest */}
|
||||
{isHomepage && process.env.EZOIC_ENABLED === "true" && (
|
||||
{isHomepage && process.env.NEXT_PUBLIC_EZOIC_ENABLED === "true" && (
|
||||
<section className="py-8 border-b">
|
||||
<div className="container max-w-2xl">
|
||||
<EzoicPlaceholder id={203} />
|
||||
|
||||
@@ -23,7 +23,7 @@ export const ezoicWidget: WidgetPlugin = {
|
||||
repeatEvery: 12,
|
||||
maxCount: 20,
|
||||
},
|
||||
shouldInject: () => process.env.EZOIC_ENABLED === "true",
|
||||
shouldInject: () => process.env.NEXT_PUBLIC_EZOIC_ENABLED === "true",
|
||||
render: (instanceIndex: number) => (
|
||||
<EzoicPlaceholder id={EZOIC_FEED_BASE_ID + instanceIndex} />
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user