Skip to content

Commit

Permalink
feat(dev): create dev branch to use dev api endpoint and deploy at cr…
Browse files Browse the repository at this point in the history
…edit.dev.driv.ly
  • Loading branch information
crisner1978 committed Oct 4, 2023
1 parent 25ade7a commit 4f5e756
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "credit-app",
"name": "credit-app.dev",
"version": "0.1.0",
"private": true,
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/app/api/credit-app/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const POST = withAppRouterHighlight(async(request: Request) => {
console.log('payload', payload)
try {
await slackMsgRequest({ url: slackUrl, data })
const d = await fetch('https://credit.api.driv.ly/applications', {
const d = await fetch('https://credit.api.dev.driv.ly/applications', {
method: 'POST',
body: JSON.stringify({ ...payload }),
headers: { 'Content-Type': 'application/json' },
Expand Down
2 changes: 1 addition & 1 deletion src/app/utils/getPayoffQuote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type PayoffQuoteResponse = {
}

export async function getPayoffQuote(request: PayoffQuoteRequest) {
const res = await fetch(`https://credit.api.driv.ly/payoff`, {
const res = await fetch(`https://credit.api.dev.driv.ly/payoff`, {
method: 'POST',
body: JSON.stringify(request),
headers: { 'Content-Type': 'application/json' },
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/usePayoffLenders.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const usePayoffLenders = () => {

useEffect(() => {
const getPayoffLenders = async () => {
const { data } = await fetch('https://credit.api.driv.ly/fields').then((res) => res.json())
const { data } = await fetch('https://credit.api.dev.driv.ly/fields').then((res) => res.json())
const lenders = await data?.ancillaryServices?.[0].financeSourceList
const sortedLenders = sortByFsName(lenders)
setLenders(sortedLenders)
Expand Down

0 comments on commit 4f5e756

Please sign in to comment.