enh
This commit is contained in:
parent
1f42cfbc5e
commit
6b4f512d90
5 changed files with 11 additions and 7 deletions
|
|
@ -14,7 +14,7 @@ export const createApp = () => {
|
||||||
|
|
||||||
// CORS middleware
|
// CORS middleware
|
||||||
app.use(cors({
|
app.use(cors({
|
||||||
origin: 'http://localhost:5174',
|
origin: ['http://localhost:5174', 'https://ui.freshyo.in'],
|
||||||
allowMethods: ['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'OPTIONS'],
|
allowMethods: ['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'OPTIONS'],
|
||||||
allowHeaders: ['Origin', 'X-Requested-With', 'Content-Type', 'Accept', 'Authorization'],
|
allowHeaders: ['Origin', 'X-Requested-With', 'Content-Type', 'Accept', 'Authorization'],
|
||||||
credentials: true,
|
credentials: true,
|
||||||
|
|
|
||||||
|
|
@ -78,7 +78,7 @@ API_CACHE_KEY = "api-cache-dev"
|
||||||
CLOUDFLARE_API_TOKEN = "N7jAg5X-RUj_fVfMW6zbfJ8qIYc81TSIKKlbZ6oh"
|
CLOUDFLARE_API_TOKEN = "N7jAg5X-RUj_fVfMW6zbfJ8qIYc81TSIKKlbZ6oh"
|
||||||
CLOUDFLARE_ZONE_ID = "edefbf750bfc3ff26ccd11e8e28dc8d7"
|
CLOUDFLARE_ZONE_ID = "edefbf750bfc3ff26ccd11e8e28dc8d7"
|
||||||
REDIS_URL = "redis://default:redis_shafi_password@57.128.212.174:6379"
|
REDIS_URL = "redis://default:redis_shafi_password@57.128.212.174:6379"
|
||||||
APP_URL = "http://localhost:4000"
|
APP_URL = "https://ui.freshyo.in"
|
||||||
RAZORPAY_KEY = "rzp_test_RdCBBUJ56NLaJK"
|
RAZORPAY_KEY = "rzp_test_RdCBBUJ56NLaJK"
|
||||||
RAZORPAY_SECRET = "namEwKBE1ypWxH0QDVg6fWOe"
|
RAZORPAY_SECRET = "namEwKBE1ypWxH0QDVg6fWOe"
|
||||||
OTP_SENDER_AUTH_TOKEN = "eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJDLTM5OENEMkJDRTM0MjQ4OCIsImlhdCI6MTc0Nzg0MTEwMywiZXhwIjoxOTA1NTIxMTAzfQ.IV64ofVKjcwveIanxu_P2XlACtPeA9sJQ74uM53osDeyUXsFv0rwkCl6NNBIX93s_wnh4MKITLbcF_ClwmFQ0A"
|
OTP_SENDER_AUTH_TOKEN = "eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJDLTM5OENEMkJDRTM0MjQ4OCIsImlhdCI6MTc0Nzg0MTEwMywiZXhwIjoxOTA1NTIxMTAzfQ.IV64ofVKjcwveIanxu_P2XlACtPeA9sJQ74uM53osDeyUXsFv0rwkCl6NNBIX93s_wnh4MKITLbcF_ClwmFQ0A"
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
const webUiConstants = {
|
const webUiConstants = {
|
||||||
// baseUrl: 'http://localhost:4000/'
|
baseUrl: 'https://worker.freshyo.in/'
|
||||||
baseUrl: '/'
|
// baseUrl: '/'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
export default webUiConstants;
|
export default webUiConstants;
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,11 @@
|
||||||
import { createTRPCReact } from '@trpc/react-query'
|
import { createTRPCReact } from '@trpc/react-query'
|
||||||
import { httpBatchLink, loggerLink } from '@trpc/client'
|
import { httpBatchLink, loggerLink } from '@trpc/client'
|
||||||
import type { AppRouter } from '../../../backend/src/trpc/router'
|
import type { AppRouter as MyRouter } from '../../../backend/src/trpc/router'
|
||||||
import webUiConstants from '@/constants'
|
import webUiConstants from '@/constants'
|
||||||
import { getAuthToken } from '@/services/auth'
|
import { getAuthToken } from '@/services/auth'
|
||||||
|
|
||||||
export const trpc = createTRPCReact<AppRouter>()
|
// export const trpc = createTRPCReact<AppRouter>()
|
||||||
|
export const trpc = createTRPCReact<MyRouter>()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,9 @@
|
||||||
"@/*": [
|
"@/*": [
|
||||||
"./src/*"
|
"./src/*"
|
||||||
],
|
],
|
||||||
|
"@/src/*": [
|
||||||
|
"../backend/src/*"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"types": [
|
"types": [
|
||||||
"node"
|
"node"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue