Skip to content

Commit

Permalink
update env
Browse files Browse the repository at this point in the history
  • Loading branch information
JClackett committed Jan 2, 2024
1 parent 4cdd832 commit 005ea54
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ REDIS_URL=""
AWS_ACCESS_KEY_USER=3p24imwpaejipmsaggas
AWS_SECRET_KEY_USER=03j430wepdgsdig-3koprsdmg

PRICE_ID=price_12345678
STRIPE_PRICE_ID=price_12345678
STRIPE_SECRET_KEY=23240j5-3k4spgssgdsg
STRIPE_WEBHOOK_SECRET=20i34j5-4kew4pesg-3kk44g5

Expand Down
2 changes: 1 addition & 1 deletion apps/web/app/pages/_app.timeline.profile.plan.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export const action = async ({ request }: ActionFunctionArgs) => {
cancel_url: FULL_WEB_URL + "/timeline/profile/plan",
automatic_tax: { enabled: true },
discounts: promoCode ? [{ promotion_code: promoCodeId }] : undefined,
line_items: [{ price: env.PRICE_ID, quantity: 1 }],
line_items: [{ price: env.OPEN_WEATHER_KEY, quantity: 1 }],
mode: "subscription",
})
if (!session.url) return badRequest("Error creating subscription")
Expand Down
2 changes: 1 addition & 1 deletion packages/server/env/src/env.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const envSchema = z.object({
// GOOGLE_API_KEY: z.string(),
STRIPE_SECRET_KEY: z.string(),
STRIPE_WEBHOOK_SECRET: z.string(),
PRICE_ID: z.string(),
STRIPE_PRICE_ID: z.string(),
OPEN_WEATHER_KEY: z.string(),
NODE_ENV: z.enum(["development", "production"]).optional(),
APP_SECRET: z.string(),
Expand Down

0 comments on commit 005ea54

Please sign in to comment.