Skip to content

Commit

Permalink
[update] using correct host
Browse files Browse the repository at this point in the history
  • Loading branch information
Animenosekai committed Jun 5, 2022
1 parent 18616a4 commit fd64ab7
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 17 deletions.
3 changes: 0 additions & 3 deletions website/components/ui/cards/mainResult.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ export const MainResultCard = ({ text, language, service, loading, onNewTranslat
const [currentTimeout, setCurrentTimeout] = useState(null);
const [transliteration, setTransliteration] = useState<TransliterateResult>(null);

console.log("MainResultCard", { text, language, service, loading, onNewTranslation, props })

useEffect(() => {
if (!service) { return }
request<TransliterateRequest>("/transliterate", {
Expand Down Expand Up @@ -187,7 +185,6 @@ export const MainResult = ({ result, onNewTranslation, ...props }: {
}, [result])

const service = new Service(result.data.service)
console.log("result", result)
return <div className="flex lg:flex-row flex-col lg:space-x-10 lg:space-y-0 space-y-5 mb-10">
<MainResultCard text={result.data.source} language={result.data.sourceLanguage} onNewTranslation={(text, lang) => {
if (!onNewTranslation) {
Expand Down
2 changes: 1 addition & 1 deletion website/config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const Configuration = {
request: {
host: process.env.NODE_ENV ? "http://127.0.0.1:5000" : "https://anise-translate.herokuapp.com"
host: process.env.NODE_ENV === "development" ? "http://127.0.0.1:5000" : "https://anise-translate.herokuapp.com"
}
}

Expand Down
13 changes: 0 additions & 13 deletions website/pages/api/hello.ts

This file was deleted.

1 comment on commit fd64ab7

@vercel
Copy link

@vercel vercel bot commented on fd64ab7 Jun 5, 2022

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.