[2025-08-23T20:46:59.053] [ERROR] api/orders - Error occurred when fetching orders {
  errorMsg: "Dynamic server usage: Route /api/orders couldn't be rendered statically because it used `request.url`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error",
  errorStack: "Error: Dynamic server usage: Route /api/orders couldn't be rendered statically because it used `request.url`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error\n" +
    '    at V (C:\\Users\\shami\\OneDrive\\Desktop\\nextjs\\NNN\\barrack_ecom\\node_modules\\next\\dist\\compiled\\next-server\\app-route.runtime.prod.js:6:21778)\n' +
    '    at Object.get (C:\\Users\\shami\\OneDrive\\Desktop\\nextjs\\NNN\\barrack_ecom\\node_modules\\next\\dist\\compiled\\next-server\\app-route.runtime.prod.js:6:29465)\n' +
    '    at m (C:\\Users\\shami\\OneDrive\\Desktop\\nextjs\\NNN\\barrack_ecom\\.next\\server\\app\\api\\orders\\route.js:1:1410)\n' +
    '    at C:\\Users\\shami\\OneDrive\\Desktop\\nextjs\\NNN\\barrack_ecom\\node_modules\\next\\dist\\compiled\\next-server\\app-route.runtime.prod.js:6:38417\n' +
    '    at C:\\Users\\shami\\OneDrive\\Desktop\\nextjs\\NNN\\barrack_ecom\\node_modules\\next\\dist\\server\\lib\\trace\\tracer.js:140:36\n' +
    '    at NoopContextManager.with (C:\\Users\\shami\\OneDrive\\Desktop\\nextjs\\NNN\\barrack_ecom\\node_modules\\@opentelemetry\\api\\build\\src\\context\\NoopContextManager.js:25:19)\n' +
    '    at ContextAPI.with (C:\\Users\\shami\\OneDrive\\Desktop\\nextjs\\NNN\\barrack_ecom\\node_modules\\@opentelemetry\\api\\build\\src\\api\\context.js:60:46)\n' +
    '    at NoopTracer.startActiveSpan (C:\\Users\\shami\\OneDrive\\Desktop\\nextjs\\NNN\\barrack_ecom\\node_modules\\@opentelemetry\\api\\build\\src\\trace\\NoopTracer.js:65:31)\n' +
    '    at ProxyTracer.startActiveSpan (C:\\Users\\shami\\OneDrive\\Desktop\\nextjs\\NNN\\barrack_ecom\\node_modules\\@opentelemetry\\api\\build\\src\\trace\\ProxyTracer.js:36:24)\n' +
    '    at C:\\Users\\shami\\OneDrive\\Desktop\\nextjs\\NNN\\barrack_ecom\\node_modules\\next\\dist\\server\\lib\\trace\\tracer.js:122:103',
  errorMeta: null
}
[2025-08-23T20:46:59.061] [ERROR] /api/user/payment - Error occurred when fetching paginated payments {
  errorMsg: "Dynamic server usage: Route /api/user/payment couldn't be rendered statically because it used `headers`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error",
  errorData: undefined
}
[2025-08-23T20:46:59.056] [ERROR] /api/admin/orders - Error fetching orders {
  error: "Dynamic server usage: Route /api/admin/orders couldn't be rendered statically because it used `headers`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error"
}
[2025-08-23T20:46:59.078] [ERROR] /api/user/payment - Error occurred when fetching paginated reviews {
  errorMsg: "Dynamic server usage: Route /api/user/review couldn't be rendered statically because it used `headers`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error",
  errorData: undefined
}
[2025-08-23T20:46:59.092] [ERROR] /api/admin/payments - Failed to fetch payments data {
  error: "Dynamic server usage: Route /api/admin/payments couldn't be rendered statically because it used `headers`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error"
}
[2025-08-23T20:46:59.093] [ERROR] api/customers - Error fetching customers:  Dynamic server usage: Route /api/admin/customers couldn't be rendered statically because it used `headers`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error
[2025-08-23T20:46:59.380] [ERROR] /api/admin/dashboard - Failed to fetch dashboard data {
  error: "Dynamic server usage: Route /api/admin/dashboard couldn't be rendered statically because it used `headers`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error"
}
[2025-08-24T23:14:47.791] [ERROR] /api/admin/payments - Failed to fetch payments data {
  error: "Dynamic server usage: Route /api/admin/payments couldn't be rendered statically because it used `headers`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error"
}
[2025-08-24T23:14:47.798] [ERROR] /api/admin/dashboard - Failed to fetch dashboard data {
  error: "Dynamic server usage: Route /api/admin/dashboard couldn't be rendered statically because it used `headers`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error"
}
[2025-08-24T23:14:47.809] [ERROR] /api/admin/orders - Error fetching orders {
  error: "Dynamic server usage: Route /api/admin/orders couldn't be rendered statically because it used `headers`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error"
}
[2025-08-24T23:14:47.813] [ERROR] /api/user/payment - Error occurred when fetching paginated payments {
  errorMsg: "Dynamic server usage: Route /api/user/payment couldn't be rendered statically because it used `headers`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error",
  errorData: undefined
}
[2025-08-24T23:14:47.893] [ERROR] api/orders - Error occurred when fetching orders {
  errorMsg: "Dynamic server usage: Route /api/orders couldn't be rendered statically because it used `request.url`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error",
  errorStack: "Error: Dynamic server usage: Route /api/orders couldn't be rendered statically because it used `request.url`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error\n" +
    '    at V (C:\\Users\\shami\\OneDrive\\Desktop\\nextjs\\NNN\\barrack_ecom\\node_modules\\next\\dist\\compiled\\next-server\\app-route.runtime.prod.js:6:21778)\n' +
    '    at Object.get (C:\\Users\\shami\\OneDrive\\Desktop\\nextjs\\NNN\\barrack_ecom\\node_modules\\next\\dist\\compiled\\next-server\\app-route.runtime.prod.js:6:29465)\n' +
    '    at m (C:\\Users\\shami\\OneDrive\\Desktop\\nextjs\\NNN\\barrack_ecom\\.next\\server\\app\\api\\orders\\route.js:1:1410)\n' +
    '    at C:\\Users\\shami\\OneDrive\\Desktop\\nextjs\\NNN\\barrack_ecom\\node_modules\\next\\dist\\compiled\\next-server\\app-route.runtime.prod.js:6:38417\n' +
    '    at C:\\Users\\shami\\OneDrive\\Desktop\\nextjs\\NNN\\barrack_ecom\\node_modules\\next\\dist\\server\\lib\\trace\\tracer.js:140:36\n' +
    '    at NoopContextManager.with (C:\\Users\\shami\\OneDrive\\Desktop\\nextjs\\NNN\\barrack_ecom\\node_modules\\@opentelemetry\\api\\build\\src\\context\\NoopContextManager.js:25:19)\n' +
    '    at ContextAPI.with (C:\\Users\\shami\\OneDrive\\Desktop\\nextjs\\NNN\\barrack_ecom\\node_modules\\@opentelemetry\\api\\build\\src\\api\\context.js:60:46)\n' +
    '    at NoopTracer.startActiveSpan (C:\\Users\\shami\\OneDrive\\Desktop\\nextjs\\NNN\\barrack_ecom\\node_modules\\@opentelemetry\\api\\build\\src\\trace\\NoopTracer.js:65:31)\n' +
    '    at ProxyTracer.startActiveSpan (C:\\Users\\shami\\OneDrive\\Desktop\\nextjs\\NNN\\barrack_ecom\\node_modules\\@opentelemetry\\api\\build\\src\\trace\\ProxyTracer.js:36:24)\n' +
    '    at C:\\Users\\shami\\OneDrive\\Desktop\\nextjs\\NNN\\barrack_ecom\\node_modules\\next\\dist\\server\\lib\\trace\\tracer.js:122:103',
  errorMeta: null
}
[2025-08-24T23:14:47.897] [ERROR] /api/user/payment - Error occurred when fetching paginated reviews {
  errorMsg: "Dynamic server usage: Route /api/user/review couldn't be rendered statically because it used `headers`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error",
  errorData: undefined
}
