feat(seo): implement dynamic metadata, sitemap, and robots.txt
Add dynamic meta tags for routes and entity detail pages Generate sitemap.xml and robots.txt dynamically in Vite Change default frontend port from 3000 to 20015
This commit is contained in:
@@ -659,7 +659,7 @@ async function referralUserId(
|
||||
}
|
||||
|
||||
function buildReferralUrl(code: string): string {
|
||||
const origin = process.env.APP_ORIGIN ?? process.env.FRONTEND_ORIGIN ?? 'http://localhost:3000';
|
||||
const origin = process.env.APP_ORIGIN ?? process.env.FRONTEND_ORIGIN ?? 'http://localhost:20015';
|
||||
const url = new URL('/register', origin);
|
||||
url.searchParams.set('ref', code);
|
||||
return url.toString();
|
||||
@@ -677,7 +677,7 @@ function getEmailConfig() {
|
||||
}
|
||||
|
||||
function buildTokenUrl(pathname: string, token: string): string {
|
||||
const origin = process.env.APP_ORIGIN ?? process.env.FRONTEND_ORIGIN ?? 'http://localhost:3000';
|
||||
const origin = process.env.APP_ORIGIN ?? process.env.FRONTEND_ORIGIN ?? 'http://localhost:20015';
|
||||
const url = new URL(pathname, origin);
|
||||
url.searchParams.set('token', token);
|
||||
return url.toString();
|
||||
|
||||
Reference in New Issue
Block a user