Enhance deployment script and registration components with improved error handling and debug logging
Some checks failed
Code Analysis (JS/Vue) / analyze (push) Failing after 55s
Some checks failed
Code Analysis (JS/Vue) / analyze (push) Failing after 55s
Update deploy-production.sh to include comprehensive build validation checks, ensuring critical files and directories are present before proceeding. Enhance the registrieren.vue component to conditionally display the window origin and improve debug logging for the registration process. Additionally, add debug information in the register-passkey-options API to capture request details, including environment and process ID, for better troubleshooting capabilities.
This commit is contained in:
@@ -13,12 +13,16 @@ export default defineEventHandler(async (event) => {
|
||||
const requestStart = Date.now()
|
||||
const requestOrigin = getHeader(event, 'origin')
|
||||
const userAgent = getHeader(event, 'user-agent')
|
||||
const nodeEnv = process.env.NODE_ENV || 'development'
|
||||
|
||||
// Debug-Ausgaben immer ausgeben (nicht nur in dev)
|
||||
console.log('[DEBUG] register-passkey-options request received', {
|
||||
origin: requestOrigin,
|
||||
userAgent: userAgent?.substring(0, 100),
|
||||
method: getMethod(event),
|
||||
timestamp: new Date().toISOString()
|
||||
timestamp: new Date().toISOString(),
|
||||
nodeEnv: nodeEnv,
|
||||
pid: process.pid
|
||||
})
|
||||
|
||||
const body = await readBody(event)
|
||||
|
||||
Reference in New Issue
Block a user