- Renamed `sampleData` to `data` in `src/config/sample-data.ts` and updated references in components. - Added ingredients to menu items in `sample-data.ts` for detailed ingredient lists. - Updated `USPList` component to reflect changes in data structure. - Modified `Menu` interface in `models.ts` to include optional ingredients property. - Implemented new `MenuGeneratorPage` for AI-driven menu creation with user input. - Created `MenuIngredientsPage` for managing and calculating ingredient costs. - Developed API route for menu generation using OpenAI API. - Enhanced navigation component to exclude admin pages and login from display. - Comprehensive logging and error handling added to API route.
122 lines
12 KiB
Plaintext
122 lines
12 KiB
Plaintext
You have triggered an unhandledRejection, you may have forgotten to catch a Promise rejection:
|
||
Error: Could not find a production build in the '.next' directory. Try building your app with 'next build' before starting the production server. https://nextjs.org/docs/messages/production-start-no-build-id
|
||
at setupFsCheck (/home/alex/git/warme/node_modules/next/dist/server/lib/router-utils/filesystem.js:151:19)
|
||
at async initialize (/home/alex/git/warme/node_modules/next/dist/server/lib/router-server.js:64:23)
|
||
at async NextCustomServer.prepare (/home/alex/git/warme/node_modules/next/dist/server/next.js:242:28)
|
||
2025-10-29T09:09:56: ⚠ For production Image Optimization with Next.js, the optional 'sharp' package is strongly recommended. Run 'npm i sharp', and Next.js will use it automatically for Image Optimization.
|
||
Read more: https://nextjs.org/docs/messages/sharp-missing-in-production
|
||
2025-10-29T09:19:59: ⨯ The requested resource isn't a valid image for /img/fusion.jpg received null
|
||
2025-10-29T09:20:01: ⚠ For production Image Optimization with Next.js, the optional 'sharp' package is strongly recommended. Run 'npm i sharp', and Next.js will use it automatically for Image Optimization.
|
||
Read more: https://nextjs.org/docs/messages/sharp-missing-in-production
|
||
2025-10-29T09:20:01: ⨯ The requested resource isn't a valid image for /img/sushi.jpg received null
|
||
2025-10-29T09:20:04: ⨯ The requested resource isn't a valid image for /img/sushi.jpg received null
|
||
2025-10-29T09:20:04: ⨯ The requested resource isn't a valid image for /img/fusion.jpg received null
|
||
2025-10-29T09:25:22: ⨯ The requested resource isn't a valid image for /img/sushi.jpg received null
|
||
2025-10-29T09:25:22: ⨯ The requested resource isn't a valid image for /img/fusion.jpg received null
|
||
2025-10-29T09:25:35: ⨯ The requested resource isn't a valid image for /img/sushi.jpg received null
|
||
2025-10-29T09:25:35: ⨯ The requested resource isn't a valid image for /img/fusion.jpg received null
|
||
2025-10-29T09:26:06: ⨯ The requested resource isn't a valid image for /img/sushi.jpg received null
|
||
2025-10-29T09:26:09: ⨯ The requested resource isn't a valid image for /img/fusion.jpg received null
|
||
2025-10-29T10:07:03: ⨯ The requested resource isn't a valid image for /img/sushi.jpg received null
|
||
2025-10-29T10:07:03: ⨯ The requested resource isn't a valid image for /img/fusion.jpg received null
|
||
2025-10-29T10:07:11: ⨯ The requested resource isn't a valid image for /img/sushi.jpg received null
|
||
2025-10-29T10:07:11: ⨯ The requested resource isn't a valid image for /img/fusion.jpg received null
|
||
You have triggered an unhandledRejection, you may have forgotten to catch a Promise rejection:
|
||
Error: Could not find a production build in the '.next' directory. Try building your app with 'next build' before starting the production server. https://nextjs.org/docs/messages/production-start-no-build-id
|
||
at setupFsCheck (/home/alex/git/warme/node_modules/next/dist/server/lib/router-utils/filesystem.js:151:19)
|
||
at async initialize (/home/alex/git/warme/node_modules/next/dist/server/lib/router-server.js:64:23)
|
||
at async NextCustomServer.prepare (/home/alex/git/warme/node_modules/next/dist/server/next.js:242:28)
|
||
You have triggered an unhandledRejection, you may have forgotten to catch a Promise rejection:
|
||
Error: Could not find a production build in the '.next' directory. Try building your app with 'next build' before starting the production server. https://nextjs.org/docs/messages/production-start-no-build-id
|
||
at setupFsCheck (/home/alex/git/warme/node_modules/next/dist/server/lib/router-utils/filesystem.js:151:19)
|
||
at async initialize (/home/alex/git/warme/node_modules/next/dist/server/lib/router-server.js:64:23)
|
||
at async NextCustomServer.prepare (/home/alex/git/warme/node_modules/next/dist/server/next.js:242:28)
|
||
2025-10-30T19:41:07: ⨯ Error: Input Buffer is empty
|
||
at Sharp._createInputDescriptor (/home/alex/git/warme/node_modules/sharp/lib/input.js:68:13)
|
||
at new Sharp (/home/alex/git/warme/node_modules/sharp/lib/constructor.js:403:29)
|
||
at Sharp (/home/alex/git/warme/node_modules/sharp/lib/constructor.js:212:12)
|
||
at detectContentType (/home/alex/git/warme/node_modules/next/dist/server/image-optimizer.js:359:28)
|
||
at imageOptimizer (/home/alex/git/warme/node_modules/next/dist/server/image-optimizer.js:767:32)
|
||
at NextNodeServer.imageOptimizer (/home/alex/git/warme/node_modules/next/dist/server/next-server.js:655:20)
|
||
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
||
at async cacheEntry.imageResponseCache.get.incrementalCache (/home/alex/git/warme/node_modules/next/dist/server/next-server.js:182:65)
|
||
at async /home/alex/git/warme/node_modules/next/dist/server/response-cache/index.js:90:36
|
||
at async /home/alex/git/warme/node_modules/next/dist/lib/batcher.js:45:32
|
||
2025-10-30T19:41:29: ⨯ Error: Input Buffer is empty
|
||
at Sharp._createInputDescriptor (/home/alex/git/warme/node_modules/sharp/lib/input.js:68:13)
|
||
at new Sharp (/home/alex/git/warme/node_modules/sharp/lib/constructor.js:403:29)
|
||
at Sharp (/home/alex/git/warme/node_modules/sharp/lib/constructor.js:212:12)
|
||
at detectContentType (/home/alex/git/warme/node_modules/next/dist/server/image-optimizer.js:359:28)
|
||
at imageOptimizer (/home/alex/git/warme/node_modules/next/dist/server/image-optimizer.js:767:32)
|
||
at NextNodeServer.imageOptimizer (/home/alex/git/warme/node_modules/next/dist/server/next-server.js:655:20)
|
||
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
||
at async cacheEntry.imageResponseCache.get.incrementalCache (/home/alex/git/warme/node_modules/next/dist/server/next-server.js:182:65)
|
||
at async /home/alex/git/warme/node_modules/next/dist/server/response-cache/index.js:90:36
|
||
at async /home/alex/git/warme/node_modules/next/dist/lib/batcher.js:45:32
|
||
2025-10-30T19:42:20: ⨯ Error: Input Buffer is empty
|
||
at Sharp._createInputDescriptor (/home/alex/git/warme/node_modules/sharp/lib/input.js:68:13)
|
||
at new Sharp (/home/alex/git/warme/node_modules/sharp/lib/constructor.js:403:29)
|
||
at Sharp (/home/alex/git/warme/node_modules/sharp/lib/constructor.js:212:12)
|
||
at detectContentType (/home/alex/git/warme/node_modules/next/dist/server/image-optimizer.js:359:28)
|
||
at imageOptimizer (/home/alex/git/warme/node_modules/next/dist/server/image-optimizer.js:767:32)
|
||
at NextNodeServer.imageOptimizer (/home/alex/git/warme/node_modules/next/dist/server/next-server.js:655:20)
|
||
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
||
at async cacheEntry.imageResponseCache.get.incrementalCache (/home/alex/git/warme/node_modules/next/dist/server/next-server.js:182:65)
|
||
at async /home/alex/git/warme/node_modules/next/dist/server/response-cache/index.js:90:36
|
||
at async /home/alex/git/warme/node_modules/next/dist/lib/batcher.js:45:32
|
||
2025-11-07T09:40:47: ⨯ TypeError: Cannot read properties of undefined (reading 'bind')
|
||
at NextNodeServer.handleRequestImpl (/home/alex/git/warme/node_modules/next/dist/server/base-server.js:476:50)
|
||
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
||
2025-11-07T09:40:49: ⨯ TypeError: Cannot read properties of undefined (reading 'bind')
|
||
at NextNodeServer.handleRequestImpl (/home/alex/git/warme/node_modules/next/dist/server/base-server.js:476:50)
|
||
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
||
2025-11-07T09:40:53: ⨯ TypeError: Cannot read properties of undefined (reading 'bind')
|
||
at NextNodeServer.handleRequestImpl (/home/alex/git/warme/node_modules/next/dist/server/base-server.js:476:50)
|
||
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
||
2025-11-07T09:41:01: ⨯ TypeError: Cannot read properties of undefined (reading 'bind')
|
||
at NextNodeServer.handleRequestImpl (/home/alex/git/warme/node_modules/next/dist/server/base-server.js:476:50)
|
||
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
||
2025-11-07T09:41:17: ⨯ TypeError: Cannot read properties of undefined (reading 'bind')
|
||
at NextNodeServer.handleRequestImpl (/home/alex/git/warme/node_modules/next/dist/server/base-server.js:476:50)
|
||
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
||
2025-11-07T09:41:51: ⨯ TypeError: Cannot read properties of undefined (reading 'bind')
|
||
at NextNodeServer.handleRequestImpl (/home/alex/git/warme/node_modules/next/dist/server/base-server.js:476:50)
|
||
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
||
2025-11-07T09:42:55: ⨯ TypeError: Cannot read properties of undefined (reading 'bind')
|
||
at NextNodeServer.handleRequestImpl (/home/alex/git/warme/node_modules/next/dist/server/base-server.js:476:50)
|
||
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
||
2025-11-07T09:45:02: ⨯ TypeError: Cannot read properties of undefined (reading 'bind')
|
||
at NextNodeServer.handleRequestImpl (/home/alex/git/warme/node_modules/next/dist/server/base-server.js:476:50)
|
||
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
||
2025-11-07T09:45:04: ⨯ TypeError: Cannot read properties of undefined (reading 'bind')
|
||
at NextNodeServer.handleRequestImpl (/home/alex/git/warme/node_modules/next/dist/server/base-server.js:476:50)
|
||
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
|
||
2025-11-07T10:48:04: ⨯ TypeError: Cannot read properties of undefined (reading 'clientModules')
|
||
at /home/alex/git/warme/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:16:24425
|
||
at /home/alex/git/warme/node_modules/next/dist/server/lib/trace/tracer.js:191:62
|
||
at /home/alex/git/warme/node_modules/next/dist/server/lib/trace/tracer.js:140:36
|
||
at NoopContextManager.with (/home/alex/git/warme/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:7062)
|
||
at ContextAPI.with (/home/alex/git/warme/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:518)
|
||
at NoopTracer.startActiveSpan (/home/alex/git/warme/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:18093)
|
||
at ProxyTracer.startActiveSpan (/home/alex/git/warme/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:18854)
|
||
at /home/alex/git/warme/node_modules/next/dist/server/lib/trace/tracer.js:122:103
|
||
at NoopContextManager.with (/home/alex/git/warme/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:7062)
|
||
at ContextAPI.with (/home/alex/git/warme/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:518)
|
||
2025-11-07T10:52:00: ⨯ The requested resource isn't a valid image for /img/christian-warme.jpg received null
|
||
2025-11-07T10:52:06: ⨯ The requested resource isn't a valid image for /img/christian-warme.jpg received null
|
||
2025-11-07T10:52:11: ⨯ The requested resource isn't a valid image for /img/christian-warme.jpg received null
|
||
2025-11-07T10:54:38: ⨯ The requested resource isn't a valid image for /img/christian-warme.jpg received null
|
||
2025-11-07T10:58:24: ⨯ The requested resource isn't a valid image for /img/christian-warme.jpg received null
|
||
2025-11-07T10:58:25: ⨯ The requested resource isn't a valid image for /img/christian-warme.jpg received null
|
||
2025-11-07T10:58:26: ⨯ The requested resource isn't a valid image for /img/christian-warme.jpg received null
|
||
2025-11-07T10:58:26: ⨯ The requested resource isn't a valid image for /img/christian-warme.jpg received null
|
||
2025-11-07T10:58:26: ⨯ The requested resource isn't a valid image for /img/christian-warme.jpg received null
|
||
2025-11-07T10:58:27: ⨯ The requested resource isn't a valid image for /img/christian-warme.jpg received null
|
||
2025-11-07T10:59:35: ⨯ The requested resource isn't a valid image for /img/christian-warme.jpg received null
|
||
2025-11-07T10:59:36: ⨯ The requested resource isn't a valid image for /img/christian-warme.jpg received null
|
||
2025-11-07T10:59:39: ⨯ The requested resource isn't a valid image for /img/christian-warme.jpg received null
|
||
2025-11-07T10:59:39: ⨯ The requested resource isn't a valid image for /img/christian-warme.jpg received null
|
||
2025-11-07T10:59:40: ⨯ The requested resource isn't a valid image for /img/christian-warme.jpg received null
|
||
2025-11-07T10:59:40: ⨯ The requested resource isn't a valid image for /img/christian-warme.jpg received null
|
||
2025-11-07T10:59:48: ⨯ The requested resource isn't a valid image for /img/christian-warme.jpg received null
|