fixed some domain issues
All checks were successful
Deploy SingleChat / deploy (push) Successful in 24s
All checks were successful
Deploy SingleChat / deploy (push) Successful in 24s
This commit is contained in:
@@ -20,12 +20,12 @@ const server = createServer(app);
|
||||
const NODE_ENV = process.env.NODE_ENV || 'development';
|
||||
const PORT = process.env.PORT || (NODE_ENV === 'production' ? 4000 : 3300);
|
||||
const IS_PRODUCTION = NODE_ENV === 'production';
|
||||
const PRIMARY_HOST = 'ypchat.net';
|
||||
const LEGACY_HOSTS = new Set(['www.ypchat.net', 'single-chat.net', 'www.single-chat.net']);
|
||||
const PRIMARY_HOST = 'www.ypchat.net';
|
||||
const LEGACY_HOSTS = new Set(['ypchat.net']);
|
||||
|
||||
// CORS-Origins konfigurieren
|
||||
const allowedOrigins = IS_PRODUCTION
|
||||
? ['https://ypchat.net', 'https://www.ypchat.net', 'https://single-chat.net', 'https://www.single-chat.net']
|
||||
? ['https://www.ypchat.net', 'https://ypchat.net']
|
||||
: ['http://localhost:5175', 'http://127.0.0.1:5175'];
|
||||
|
||||
// Socket.IO auf dem gleichen HTTP-Server wie Express
|
||||
|
||||
@@ -2,7 +2,7 @@ import { readFileSync, existsSync } from 'fs';
|
||||
import { join, resolve } from 'path';
|
||||
import { loadFeedback } from './feedback-store.js';
|
||||
|
||||
const SITE_URL = 'https://ypchat.net';
|
||||
const SITE_URL = 'https://www.ypchat.net';
|
||||
const DEFAULT_IMAGE = `${SITE_URL}/static/favicon.png`;
|
||||
const SEO_LOCALES = [
|
||||
{ code: 'de', label: 'Deutsch' },
|
||||
@@ -363,7 +363,7 @@ for (const page of landingPages) {
|
||||
isPartOf: {
|
||||
'@type': 'WebSite',
|
||||
name: 'SingleChat',
|
||||
alternateName: 'Single-Chat.net',
|
||||
alternateName: 'YPChat',
|
||||
url: `${SITE_URL}/`
|
||||
},
|
||||
inLanguage: 'de-DE'
|
||||
@@ -515,7 +515,7 @@ function buildSeoLandingContent(route) {
|
||||
.join('\n');
|
||||
|
||||
return `<section lang="de" style="max-width:960px;margin:24px auto;padding:0 16px;">
|
||||
<p style="font:700 12px/1.2 sans-serif;color:#637067;text-transform:uppercase;margin:0 0 6px;">Single-Chat.net</p>
|
||||
<p style="font:700 12px/1.2 sans-serif;color:#637067;text-transform:uppercase;margin:0 0 6px;">YPChat</p>
|
||||
<h1 style="font:700 34px/1.15 sans-serif;color:#18201b;margin:0 0 12px;">${escapeHtml(page.heading)}</h1>
|
||||
<p style="font:400 16px/1.6 sans-serif;color:#344038;margin:0 0 18px;max-width:760px;">${escapeHtml(page.intro)}</p>
|
||||
<div style="display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;">${sectionMarkup}</div>
|
||||
|
||||
Reference in New Issue
Block a user