Update legal docs (#1260)

* Update legal docs

* add app

* fix homepage
This commit is contained in:
Geometrically
2023-08-05 17:27:35 -07:00
committed by GitHub
parent 37a1e67579
commit f5cf1ca08c
20 changed files with 1423 additions and 359 deletions

View File

@@ -8,7 +8,6 @@ import { globIterate } from 'glob'
import { match as matchLocale } from '@formatjs/intl-localematcher'
const STAGING_API_URL = 'https://staging-api.modrinth.com/v2/'
const STAGING_ARIADNE_URL = 'https://staging-ariadne.modrinth.com/v1/'
const preloadedFonts = [
'inter/Inter-Regular.woff2',
@@ -264,7 +263,6 @@ export default defineNuxtConfig({
rateLimitKey: process.env.RATE_LIMIT_IGNORE_KEY ?? globalThis.RATE_LIMIT_IGNORE_KEY,
public: {
apiBaseUrl: getApiUrl(),
ariadneBaseUrl: getAriadneUrl(),
siteUrl: getDomain(),
owner: process.env.VERCEL_GIT_REPO_OWNER || 'modrinth',
@@ -313,11 +311,6 @@ function getApiUrl() {
return process.env.BROWSER_BASE_URL ?? globalThis.BROWSER_BASE_URL ?? STAGING_API_URL
}
function getAriadneUrl() {
// @ts-ignore
return process.env.BROWSER_ARIADNE_URL ?? globalThis.BROWSER_ARIADNE_URL ?? STAGING_ARIADNE_URL
}
function getDomain() {
if (process.env.NODE_ENV === 'production') {
if (process.env.SITE_URL) {