fixing public routing for store modes

This commit is contained in:
2025-12-08 15:00:37 +01:00
parent a0b956b242
commit d45b344264
3 changed files with 3 additions and 3 deletions

View File

@@ -7,7 +7,7 @@ export async function POST(req: NextRequest) {
try {
const body = await req.json();
const storeMode = process.env.STORE_MODE || 'hotel';
const storeMode = process.env.NEXT_PUBLIC_STORE_MODE || process.env.STORE_MODE || 'hotel';
const userAgent = req.headers.get('user-agent') || undefined;
const event: EventBase = {