@revenexx/cover 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/nuxt.config.ts +9 -0
- package/package.json +1 -1
- package/server/utils/revenexxSdk.ts +7 -1
package/nuxt.config.ts
CHANGED
|
@@ -104,6 +104,15 @@ export default defineNuxtConfig({
|
|
|
104
104
|
},
|
|
105
105
|
},
|
|
106
106
|
|
|
107
|
+
experimental: {
|
|
108
|
+
// Self-heal version skew: after a deploy, browsers holding the
|
|
109
|
+
// previous build's manifest request chunk hashes that no longer
|
|
110
|
+
// exist — reload immediately instead of stranding the customer on
|
|
111
|
+
// "Importing module script failed" (the default 'automatic' only
|
|
112
|
+
// reloads on the NEXT navigation).
|
|
113
|
+
emitRouteChunkError: "automatic-immediate",
|
|
114
|
+
},
|
|
115
|
+
|
|
107
116
|
i18n: {
|
|
108
117
|
locales: [
|
|
109
118
|
{ code: "de", language: "de-DE", files: layerLocaleFiles("de") },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@revenexx/cover",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Cover \u2014 revenexx design system for Nuxt. Distributed as a Nuxt layer: generic UI components, theming tokens and stores shared by the demo shop, custom storefronts and the Blokkli theme.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./nuxt.config.ts",
|
|
@@ -154,8 +154,14 @@ export function useRevenexxSdk(): RevenexxSdk {
|
|
|
154
154
|
const client = new Client()
|
|
155
155
|
.setEndpoint(endpoint)
|
|
156
156
|
.setTenant(tenant);
|
|
157
|
+
// Auth: the brokered context wins — it is a Zitadel JWT the gateway
|
|
158
|
+
// verifies against the same JWKS as any interactive caller, so one theme
|
|
159
|
+
// build serves any tenant without per-site credentials. The explicit
|
|
160
|
+
// "Bearer " prefix works around @revenexx/sdk <= 0.0.5 writing the raw
|
|
161
|
+
// value into the Authorization header (generator fix: sdk-generator #9;
|
|
162
|
+
// the fixed setter keeps an existing prefix, so this stays correct).
|
|
157
163
|
if (brokered?.jwt) {
|
|
158
|
-
client.setBearerAuth(brokered.jwt);
|
|
164
|
+
client.setBearerAuth(`Bearer ${brokered.jwt}`);
|
|
159
165
|
}
|
|
160
166
|
else {
|
|
161
167
|
client.setApiKeyAuth(apiKey);
|