Update server configuration and translations for improved deployment and user experience

- Enhanced server startup message to include dynamic protocol and domain based on the environment (production or development).
- Updated translation references from GitHub to Gitea across multiple languages for consistency.
- Refactored layout and metadata in Astro components to utilize SITE configuration for URLs, ensuring accurate site links.
- Cleaned up unused code in the layout file and removed commented-out sections for better readability.
This commit is contained in:
becarta
2025-07-18 08:16:10 +02:00
parent 4fbfcc5855
commit 0b59b3b977
5 changed files with 26 additions and 27 deletions

View File

@@ -18,5 +18,12 @@ app.use(express.static(path.join(__dirname, 'dist/client')));
app.all('*', handler);
app.listen(PORT, () => {
console.log(`Server running with compression on http://localhost:${PORT}`);
const isProduction = process.env.NODE_ENV === 'production';
const domain = isProduction ? '365devnet.eu' : `localhost:${PORT}`;
const protocol = isProduction ? 'https' : 'http';
console.log(`Server running with compression on ${protocol}://${domain}`);
if (!isProduction) {
console.log(`Development server accessible at http://localhost:${PORT}`);
}
});