@scayle/storefront-nuxt
v8.63.0
Published
Nuxt integration for the SCAYLE Commerce Engine and Storefront API
Keywords
Readme
Installation
# Using pnpm
pnpm add -D @scayle/storefront-nuxt
# Using yarn
yarn add --dev @scayle/storefront-nuxt
# Using npm
npm install --save-dev @scayle/storefront-nuxtGetting Started
Visit the Quickstart Guide to get started with Storefront Nuxt.
Visit the Docs to learn more about our system requirements.
JSON logs
Set storefront.log.json to true in the public runtime config, or NUXT_PUBLIC_STOREFRONT_LOG_JSON=true in the
environment, to write server-side logs as one JSON object per line. This covers the Storefront logger (useLog,
event.context.$log, and the log of the RPC context) and all console output on the server. Browser logs keep
their format.
Each line carries:
timestamp: ISO 8601 string of the log entry's date.message: the formatted message, prefixed with the log space (for example[storefront-nuxt.sfc]), including stack traces and causes of logged errors.severity: the consola log type, for exampleinfo,warn,error, ordebug.trace_idandspan_id: lowercase hex ids of the OpenTelemetry span that was active when the log was written, for example the request span of@scayle/nuxt-opentelemetry. Omitted when no span is active, for example during startup or when the OpenTelemetry SDK is not initialized, and when the active span has an invalid span context. The field names follow the OpenTelemetry trace context in non-OTLP log formats convention, so log backends can link each line to its trace.
Consola collapses an identical message that is logged more than five times in a row, each within a second of the
previous one, into one line ending in (repeated N times). That line carries the trace_id and span_id of the log
call that writes it, which can belong to a different request than the repeated messages.
For example, event.context.$log.info('Basket updated') in a server route handler writes this line during a traced
request, spread over several lines here for reading:
{
"timestamp": "2026-11-06T12:00:00.000Z",
"message": "[storefront-nuxt] Basket updated",
"severity": "info",
"trace_id": "0af7651916cd43dd8448eb211c80319c",
"span_id": "b7ad6b7169203331"
}What is SCAYLE?
SCAYLE is a full-featured e-commerce software solution that comes with flexible APIs. Within SCAYLE, you can manage all aspects of your shop, such as products, stocks, customers, and transactions.
Learn more about SCAYLE’s architecture and commerce modules in the docs.
Other channels
License
Licensed under the MIT License
