change port 4023 to 4024
This commit is contained in:
@@ -86,7 +86,7 @@ export async function POST(request: NextRequest) {
|
||||
const phone = '9876543210' // Default phone or fetch from user profile
|
||||
|
||||
// Success and failure URLs for balance transactions
|
||||
const baseUrl = process.env.NEXT_PUBLIC_BASE_URL || 'http://localhost:4023'
|
||||
const baseUrl = process.env.NEXT_PUBLIC_BASE_URL || 'http://localhost:4024'
|
||||
const surl = `${baseUrl}/api/balance/success`
|
||||
const furl = `${baseUrl}/api/balance/failure`
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ export async function POST(request: NextRequest) {
|
||||
const phone = '9876543210' // Default phone or fetch from user profile
|
||||
|
||||
// Success and failure URLs
|
||||
const baseUrl = process.env.NEXT_PUBLIC_BASE_URL || 'http://localhost:4023'
|
||||
const baseUrl = process.env.NEXT_PUBLIC_BASE_URL || 'http://localhost:4024'
|
||||
const surl = `${baseUrl}/api/payments/success`
|
||||
const furl = `${baseUrl}/api/payments/failure`
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { MetadataRoute } from 'next'
|
||||
|
||||
export default function robots(): MetadataRoute.Robots {
|
||||
const baseUrl = process.env.NEXT_PUBLIC_SITE_URL || 'http://localhost:4023'
|
||||
const baseUrl = process.env.NEXT_PUBLIC_SITE_URL || 'http://localhost:4024'
|
||||
|
||||
return {
|
||||
rules: [
|
||||
|
||||
@@ -2,7 +2,7 @@ import { MetadataRoute } from 'next'
|
||||
import TopicModel from '@/models/topic'
|
||||
|
||||
export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
|
||||
const baseUrl = process.env.NEXT_PUBLIC_SITE_URL || 'http://localhost:4023'
|
||||
const baseUrl = process.env.NEXT_PUBLIC_SITE_URL || 'http://localhost:4024'
|
||||
|
||||
// Static pages
|
||||
const staticPages = [
|
||||
|
||||
@@ -21,7 +21,7 @@ async function getTopicPost(slug: string): Promise<ITopic | null> {
|
||||
const baseUrl =
|
||||
process.env.NODE_ENV === 'production'
|
||||
? `${process.env.NEXTAUTH_URL || 'https://siliconpin.com'}`
|
||||
: 'http://localhost:4023'
|
||||
: 'http://localhost:4024'
|
||||
|
||||
const response = await fetch(`${baseUrl}/api/topics/${encodeURIComponent(slug)}`, {
|
||||
headers: {
|
||||
@@ -58,7 +58,7 @@ async function getRelatedPosts(slug: string, limit: number = 2): Promise<ITopic[
|
||||
const baseUrl =
|
||||
process.env.NODE_ENV === 'production'
|
||||
? `${process.env.NEXTAUTH_URL || 'https://siliconpin.com'}`
|
||||
: 'http://localhost:4023'
|
||||
: 'http://localhost:4024'
|
||||
|
||||
const response = await fetch(
|
||||
`${baseUrl}/api/topics/${encodeURIComponent(slug)}/related?limit=${limit}`,
|
||||
|
||||
@@ -86,7 +86,7 @@ async function getTopics(searchParams: Promise<{ [key: string]: string | string[
|
||||
const baseUrl =
|
||||
process.env.NODE_ENV === 'production'
|
||||
? `${process.env.NEXTAUTH_URL || 'https://siliconpin.com'}`
|
||||
: 'http://localhost:4023'
|
||||
: 'http://localhost:4024'
|
||||
|
||||
const searchQuery = new URLSearchParams({
|
||||
page: page.toString(),
|
||||
@@ -144,7 +144,7 @@ async function getTags(): Promise<Array<{ id: string; name: string }>> {
|
||||
const baseUrl =
|
||||
process.env.NODE_ENV === 'production'
|
||||
? `${process.env.NEXTAUTH_URL || 'https://siliconpin.com'}`
|
||||
: 'http://localhost:4023'
|
||||
: 'http://localhost:4024'
|
||||
|
||||
const response = await fetch(`${baseUrl}/api/topics/tags`, {
|
||||
headers: {
|
||||
|
||||
Reference in New Issue
Block a user