feature/excel #1

Open
mmintel wants to merge 86 commits from feature/excel into main
2 changed files with 7 additions and 5 deletions
Showing only changes of commit 32361403d0 - Show all commits

View File

@@ -1,6 +1,7 @@
'use server';
import { getServerAppServices } from '@/lib/services/create-services.server';
import { config } from '@/lib/config';
export async function requestBrochureAction(formData: FormData) {
const services = getServerAppServices();
@@ -76,7 +77,8 @@ export async function requestBrochureAction(formData: FormData) {
}
// 3. Send Brochure via Email
const brochureUrl = `https://klz-cables.com/brochure/klz-product-catalog-${locale}.pdf`;
const baseUrl = config.baseUrl || 'https://klz-cables.com';
const brochureUrl = `${baseUrl}/brochure/klz-product-catalog-${locale}.pdf`;
try {
const { sendEmail } = await import('@/lib/mail/mailer');

View File

@@ -435,16 +435,16 @@ const nextConfig = {
destination: '/api/datasheets/:path*',
},
{
source: '/:locale/brochures/:path*',
destination: '/api/brochures/:path*',
source: '/:locale/brochure/:path*',
destination: '/brochure/:path*',
},
{
source: '/datasheets/:path*',
destination: '/api/datasheets/:path*',
},
{
source: '/brochures/:path*',
destination: '/api/brochures/:path*',
source: '/brochure/:path*',
destination: '/brochure/:path*',
},
{
source: '/de/produkte',