mirror of
https://github.com/CompeyDev/fxtwitter-docker.git
synced 2025-04-10 21:10:54 +01:00
Fixed test & redirect
This commit is contained in:
parent
c333ccbdc9
commit
cc6b59d084
6 changed files with 8 additions and 1 deletions
|
@ -5,6 +5,7 @@ MOSAIC_DOMAIN_LIST = "mosaic.fxtwitter.com"
|
||||||
API_HOST_LIST = "api.fxtwitter.com,api-canary.fxtwitter.com"
|
API_HOST_LIST = "api.fxtwitter.com,api-canary.fxtwitter.com"
|
||||||
HOST_URL = "https://fxtwitter.com"
|
HOST_URL = "https://fxtwitter.com"
|
||||||
REDIRECT_URL = "https://github.com/dangeredwolf/FixTweet"
|
REDIRECT_URL = "https://github.com/dangeredwolf/FixTweet"
|
||||||
|
EMBED_URL = "https://discord.gg/6CQTTTkGaH"
|
||||||
SENTRY_DSN = "https://aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa@aaaaaa.ingest.sentry.io/69"
|
SENTRY_DSN = "https://aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa@aaaaaa.ingest.sentry.io/69"
|
||||||
SENTRY_AUTH_TOKEN = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
SENTRY_AUTH_TOKEN = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
||||||
SENTRY_ORG = "dangeredwolf"
|
SENTRY_ORG = "dangeredwolf"
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
"API_HOST_LIST": "api.fxtwitter.com",
|
"API_HOST_LIST": "api.fxtwitter.com",
|
||||||
"HOST_URL": "https://fxtwitter.com",
|
"HOST_URL": "https://fxtwitter.com",
|
||||||
"REDIRECT_URL": "https://github.com/dangeredwolf/FixTweet",
|
"REDIRECT_URL": "https://github.com/dangeredwolf/FixTweet",
|
||||||
|
"EMBED_URL": "https://discord.gg/6CQTTTkGaH",
|
||||||
"RELEASE_NAME": "fixtweet-test",
|
"RELEASE_NAME": "fixtweet-test",
|
||||||
"TEST": true
|
"TEST": true
|
||||||
},
|
},
|
||||||
|
|
|
@ -7,6 +7,7 @@ export const Constants = {
|
||||||
MOSAIC_DOMAIN_LIST: MOSAIC_DOMAIN_LIST.split(','),
|
MOSAIC_DOMAIN_LIST: MOSAIC_DOMAIN_LIST.split(','),
|
||||||
API_HOST_LIST: API_HOST_LIST.split(','),
|
API_HOST_LIST: API_HOST_LIST.split(','),
|
||||||
HOST_URL: HOST_URL,
|
HOST_URL: HOST_URL,
|
||||||
|
EMBED_URL: EMBED_URL,
|
||||||
REDIRECT_URL: REDIRECT_URL,
|
REDIRECT_URL: REDIRECT_URL,
|
||||||
RELEASE_NAME: RELEASE_NAME,
|
RELEASE_NAME: RELEASE_NAME,
|
||||||
API_DOCS_URL: `https://github.com/dangeredwolf/FixTweet/wiki/API-Home`,
|
API_DOCS_URL: `https://github.com/dangeredwolf/FixTweet/wiki/API-Home`,
|
||||||
|
|
1
src/env.d.ts
vendored
1
src/env.d.ts
vendored
|
@ -2,6 +2,7 @@ declare const BRANDING_NAME: string;
|
||||||
declare const BRANDING_NAME_DISCORD: string;
|
declare const BRANDING_NAME_DISCORD: string;
|
||||||
declare const DIRECT_MEDIA_DOMAINS: string;
|
declare const DIRECT_MEDIA_DOMAINS: string;
|
||||||
declare const HOST_URL: string;
|
declare const HOST_URL: string;
|
||||||
|
declare const EMBED_URL: string;
|
||||||
declare const REDIRECT_URL: string;
|
declare const REDIRECT_URL: string;
|
||||||
declare const MOSAIC_DOMAIN_LIST: string;
|
declare const MOSAIC_DOMAIN_LIST: string;
|
||||||
declare const API_HOST_LIST: string;
|
declare const API_HOST_LIST: string;
|
||||||
|
|
|
@ -119,7 +119,7 @@ router.get('/owoembed', async (request: Request) => {
|
||||||
author
|
author
|
||||||
)}/status/${encodeURIComponent(status)}`,
|
)}/status/${encodeURIComponent(status)}`,
|
||||||
provider_name: Constants.BRANDING_NAME_DISCORD,
|
provider_name: Constants.BRANDING_NAME_DISCORD,
|
||||||
provider_url: Constants.REDIRECT_URL,
|
provider_url: Constants.EMBED_URL,
|
||||||
title: Strings.DEFAULT_AUTHOR_TEXT,
|
title: Strings.DEFAULT_AUTHOR_TEXT,
|
||||||
type: 'link',
|
type: 'link',
|
||||||
version: '1.0'
|
version: '1.0'
|
||||||
|
|
|
@ -33,6 +33,9 @@ let plugins = [
|
||||||
new webpack.DefinePlugin({
|
new webpack.DefinePlugin({
|
||||||
REDIRECT_URL: `'${process.env.REDIRECT_URL}'`
|
REDIRECT_URL: `'${process.env.REDIRECT_URL}'`
|
||||||
}),
|
}),
|
||||||
|
new webpack.DefinePlugin({
|
||||||
|
EMBED_URL: `'${process.env.EMBED_URL}'`
|
||||||
|
}),
|
||||||
new webpack.DefinePlugin({
|
new webpack.DefinePlugin({
|
||||||
MOSAIC_DOMAIN_LIST: `'${process.env.MOSAIC_DOMAIN_LIST}'`
|
MOSAIC_DOMAIN_LIST: `'${process.env.MOSAIC_DOMAIN_LIST}'`
|
||||||
}),
|
}),
|
||||||
|
|
Loading…
Add table
Reference in a new issue