Skip to content

Commit

Permalink
fix: use correct anystyle api url
Browse files Browse the repository at this point in the history
  • Loading branch information
tefkah committed Sep 2, 2023
1 parent b0d73b5 commit 511c619
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
7 changes: 4 additions & 3 deletions apps/converter-frontend/utils/converters/docxToJats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@ export async function docxToJatsConverter(
})
.use(reoffParseReferences, {
apiUrl:
process.env.NODE_ENV === 'production'
? apiUrl || '/api/style'
: process.env.NEXT_PUBLIC_STYLE_DEV_URL || 'http://localhost:8000/api/style',
// process.env.NODE_ENV === 'production'
// ? apiUrl || '/api/style'
// :
process.env.NEXT_PUBLIC_STYLE_DEV_URL || 'http://localhost:8000/api/style',
mailto,
})
// @ts-expect-error tbh idk what it's talking about
Expand Down
7 changes: 4 additions & 3 deletions apps/converter-frontend/utils/converters/docxToJatsToTex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@ export async function docxToTexConverter(
})
.use(reoffParseReferences, {
apiUrl:
process.env.NODE_ENV === 'production'
? apiUrl || '/api/style'
: process.env.NEXT_PUBLIC_STYLE_DEV_URL || 'http://localhost:8000/api/style',
// process.env.NODE_ENV === 'production'
// ? apiUrl || '/api/style'
// :
process.env.NEXT_PUBLIC_STYLE_DEV_URL || 'http://localhost:8000/api/style',
mailto,
})
// @ts-expect-error tbh idk what it's talking about
Expand Down
7 changes: 4 additions & 3 deletions apps/converter-frontend/utils/converters/docxToTex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,10 @@ export async function docxToTexConverter(
])
.use(reoffParseReferences, {
apiUrl:
process.env.NODE_ENV === 'production'
? apiUrl || '/api/style'
: process.env.NEXT_PUBLIC_STYLE_DEV_URL || 'http://localhost:8000/api/style',
// process.env.NODE_ENV === 'production'
// ? apiUrl || '/api/style'
// :
process.env.NEXT_PUBLIC_STYLE_DEV_URL || 'http://localhost:8000/api/style',
// mailto: '[email protected]',
})
.use(
Expand Down

1 comment on commit 511c619

@vercel
Copy link

@vercel vercel bot commented on 511c619 Sep 2, 2023

Choose a reason for hiding this comment

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

Please sign in to comment.