Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Commit

Permalink
fix: remove unused client envar
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiejaoude committed Sep 4, 2023
1 parent 9b154e9 commit f5214af
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 6 deletions.
1 change: 0 additions & 1 deletion .env.docker
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@ ADMIN_USERS="eddiejaoude,SaraJaoude"

STRIPE_SECRET_KEY=""
STRIPE_PREMIUM_PRICING_ID=""
STRIPE_MANAGE_PLAN_URL=""
STRIPE_WEBHOOK_SECRET=""
1 change: 0 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,4 @@ ADMIN_USERS="eddiejaoude,SaraJaoude,_test-admin-user"

STRIPE_SECRET_KEY=""
STRIPE_PREMIUM_PRICING_ID=""
STRIPE_MANAGE_PLAN_URL=""
STRIPE_WEBHOOK_SECRET=""
1 change: 0 additions & 1 deletion config/schemas/clientSchema.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ const z = require("zod");
const envSchema = z.object({
NEXT_PUBLIC_BASE_URL: z.string().url().default("http://localhost:3000"),
STRIPE_PREMIUM_PRICING_ID: z.string().optional(),
STRIPE_MANAGE_PLAN_URL: z.string().optional(),
});

const clientEnv = envSchema.safeParse(process.env);
Expand Down
5 changes: 2 additions & 3 deletions pages/pricing.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { CheckIcon, MinusIcon } from "@heroicons/react/20/solid";
import { authOptions } from "./api/auth/[...nextauth]";
import { getServerSession } from "next-auth/next";

import { clientEnv } from "@config/schemas/clientSchema";
import Page from "@components/Page";
import PageHead from "@components/PageHead";
import { classNames } from "@services/utils/classNames";
Expand All @@ -21,11 +20,11 @@ export async function getServerSideProps(context) {
}

return {
props: { user, clientEnv },
props: { user },
};
}

export default function Premium({ user, clientEnv }) {
export default function Premium({ user }) {
const tiers = [
{
name: "Free",
Expand Down

0 comments on commit f5214af

Please sign in to comment.