resolve todos in website and api

This commit is contained in:
2025-12-20 10:45:56 +01:00
parent 656ec62426
commit 7bbad511e2
62 changed files with 2036 additions and 611 deletions

View File

@@ -1,26 +1,37 @@
/**
* Site-wide configuration for GridPilot website
*
* IMPORTANT: Update this file with correct information before going live.
* This serves as a single source of truth for legal and company information.
* Site-wide configuration for GridPilot website.
*
* Values are primarily sourced from environment variables so that
* deployments can provide real company details without hard-coding
* production data in the repository.
*/
const env = {
platformName: process.env.NEXT_PUBLIC_SITE_NAME,
platformUrl: process.env.NEXT_PUBLIC_SITE_URL,
supportEmail: process.env.NEXT_PUBLIC_SUPPORT_EMAIL,
sponsorEmail: process.env.NEXT_PUBLIC_SPONSOR_EMAIL,
legalCompanyName: process.env.NEXT_PUBLIC_LEGAL_COMPANY_NAME,
legalVatId: process.env.NEXT_PUBLIC_LEGAL_VAT_ID,
legalRegisteredCountry: process.env.NEXT_PUBLIC_LEGAL_REGISTERED_COUNTRY,
legalRegisteredAddress: process.env.NEXT_PUBLIC_LEGAL_REGISTERED_ADDRESS,
} as const;
export const siteConfig = {
// Platform Information
platformName: 'GridPilot',
platformUrl: process.env.NEXT_PUBLIC_SITE_URL || 'https://gridpilot.com',
platformName: env.platformName ?? 'GridPilot',
platformUrl: env.platformUrl ?? 'https://gridpilot.com',
// Contact Information
supportEmail: 'support@gridpilot.com',
sponsorEmail: 'sponsors@gridpilot.com',
supportEmail: env.supportEmail ?? 'support@example.com',
sponsorEmail: env.sponsorEmail ?? 'sponsors@example.com',
// Legal & Business Information
// TODO: Update these with actual company details before launch
legal: {
companyName: '', // e.g., 'GridPilot GmbH' - leave empty until confirmed
vatId: '', // e.g., 'DE123456789' - leave empty until confirmed
registeredCountry: '', // e.g., 'Germany' - leave empty until confirmed
registeredAddress: '', // Full registered address - leave empty until confirmed
companyName: env.legalCompanyName ?? '',
vatId: env.legalVatId ?? '',
registeredCountry: env.legalRegisteredCountry ?? '',
registeredAddress: env.legalRegisteredAddress ?? '',
},
// Platform Fees