eac4f6e216
- Update BRAND_GUIDELINES.md with new melting clock logo concept - Rebrand UI components with new violet-to-pink gradient color scheme - Implement HAFAS authentication headers and GET support in route - Update logo SVGs to match new brand guidelines - Fix HAFAS time format to exclude millisecond padding - Update default station to Mödling Bahnhof - Bump workspace package versions to 1.0.0
24 lines
686 B
TypeScript
24 lines
686 B
TypeScript
import type { NextConfig } from "next";
|
|
|
|
const nextConfig: NextConfig = {
|
|
output: "standalone",
|
|
allowedDevOrigins: ['100.107.92.66'],
|
|
serverExternalPackages: ["node-ical"],
|
|
env: {
|
|
CORS_ALLOWED_ORIGINS: process.env.CORS_ALLOWED_ORIGINS,
|
|
DEPLOYMENT_URL: process.env.DEPLOYMENT_URL,
|
|
},
|
|
};
|
|
|
|
// Validate environment variables at build time
|
|
if (process.env.NODE_ENV === 'production') {
|
|
if (!process.env.CORS_ALLOWED_ORIGINS) {
|
|
throw new Error('Missing CORS_ALLOWED_ORIGINS environment variable in production');
|
|
}
|
|
if (!process.env.DEPLOYMENT_URL) {
|
|
throw new Error('Missing DEPLOYMENT_URL environment variable in production');
|
|
}
|
|
}
|
|
|
|
export default nextConfig;
|