Compare commits
2 Commits
v2.3.11
...
feature/ex
| Author | SHA1 | Date | |
|---|---|---|---|
| 32361403d0 | |||
| e6225ba6fd |
@@ -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');
|
||||
|
||||
@@ -61,7 +61,7 @@ services:
|
||||
|
||||
klz-gatekeeper:
|
||||
profiles: [ "gatekeeper" ]
|
||||
image: registry.infra.mintel.me/mintel/gatekeeper:testing
|
||||
image: git.infra.mintel.me/mmintel/gatekeeper:v1.9.18
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
infra:
|
||||
|
||||
@@ -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',
|
||||
|
||||
12
package.json
12
package.json
@@ -4,10 +4,10 @@
|
||||
"private": true,
|
||||
"packageManager": "pnpm@10.18.3",
|
||||
"dependencies": {
|
||||
"@mintel/mail": "^1.8.21",
|
||||
"@mintel/next-config": "^1.8.21",
|
||||
"@mintel/next-feedback": "^1.8.21",
|
||||
"@mintel/next-utils": "^1.8.21",
|
||||
"@mintel/mail": "1.9.18",
|
||||
"@mintel/next-config": "1.9.18",
|
||||
"@mintel/next-feedback": "1.9.18",
|
||||
"@mintel/next-utils": "1.9.18",
|
||||
"@payloadcms/db-postgres": "^3.77.0",
|
||||
"@payloadcms/email-nodemailer": "^3.77.0",
|
||||
"@payloadcms/next": "^3.77.0",
|
||||
@@ -53,8 +53,8 @@
|
||||
"@commitlint/config-conventional": "^20.4.0",
|
||||
"@cspell/dict-de-de": "^4.1.2",
|
||||
"@lhci/cli": "^0.15.1",
|
||||
"@mintel/eslint-config": "1.8.21",
|
||||
"@mintel/tsconfig": "^1.8.21",
|
||||
"@mintel/eslint-config": "1.9.18",
|
||||
"@mintel/tsconfig": "1.9.18",
|
||||
"@next/bundle-analyzer": "^16.1.6",
|
||||
"@tailwindcss/cli": "^4.1.18",
|
||||
"@tailwindcss/postcss": "^4.1.18",
|
||||
|
||||
Reference in New Issue
Block a user