We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1b4741 commit 0309134Copy full SHA for 0309134
lib/api/docs.ts
@@ -1,6 +1,8 @@
1
-import { BASE_URL } from './common'
+// import { BASE_URL } from './common'
2
3
-const TERMS_URL = `${BASE_URL}/terms`
+// NOTE: static generation only, so we can use NEXT_PUBLIC_APP_URL
4
+
5
+const TERMS_URL = `${process.env.NEXT_PUBLIC_APP_URL}/api/v1/terms`
6
7
export const getTermsDoc = async (): Promise<string> => {
8
const url = new URL(TERMS_URL)
@@ -9,7 +11,7 @@ export const getTermsDoc = async (): Promise<string> => {
9
11
return response.text()
10
12
}
13
-const PRIVACY_URL = `${BASE_URL}/privacy`
14
+const PRIVACY_URL = `${process.env.NEXT_PUBLIC_APP_URL}/api/v1/privacy`
15
16
export const getPrivacyDoc = async (): Promise<string> => {
17
const url = new URL(PRIVACY_URL)
0 commit comments