Skip to content

Commit

Permalink
feat(API): adding tenant dev & prod to payload
Browse files Browse the repository at this point in the history
  • Loading branch information
crisner1978 committed Jan 11, 2024
1 parent 52a634b commit 5673c9e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
Full credit application powered by Drivly

## APIs Used
- [airtable.do](https://github.com/drivly/airtable.do)
- [airtable.vin](https://github.com/drivly/airtable.vin)
- [credit.api.driv.ly](https://github.com/drivly/route-one)
- [build.vin](https://github.com/drivly/build.vin)
7 changes: 5 additions & 2 deletions src/app/api/credit-app/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ import { NextResponse } from 'next/server'
import { withAppRouterHighlight } from '@/app/utils/withAppRouterHighlight'

const slackUrl = process.env.SLACK_WEBHOOK_URL
const TENANT = process.env.NODE_ENV === 'development' ? 'CLOUD-DEV' : 'CLOUD-PROD'

export const POST = withAppRouterHighlight(async(request: Request) => {
let payload: Record<string, any> = {}
export const POST = withAppRouterHighlight(async (request: Request) => {
let payload: Record<string, any> = {
tenant: TENANT,
}
const data = await request.json()
const { primary, secondary, vehicle, tradeIn } = data

Expand Down

1 comment on commit 5673c9e

@vercel
Copy link

@vercel vercel bot commented on 5673c9e Jan 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checks for Deployment have failed

Please sign in to comment.