Skip to content

Commit 317b9ce

Browse files
committed
this!
1 parent 0c74b19 commit 317b9ce

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

next.config.js

-4
Original file line numberDiff line numberDiff line change
@@ -279,10 +279,6 @@ const config = {
279279
{
280280
source: '/:path*',
281281
headers: [
282-
{
283-
key: 'app-name',
284-
value: 'nav-enonicxp-frontend',
285-
},
286282
{
287283
key: 'Content-Security-Policy',
288284
value: await csp(),

server/src/server.ts

+5
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ nextApp.prepare().then(async () => {
4747
next();
4848
});
4949

50+
expressApp.all('*', (req, res, next) => {
51+
res.setHeader('app-name', 'nav-enonicxp-frontend');
52+
next();
53+
});
54+
5055
if (isFailover) {
5156
serverSetupFailover(expressApp, nextApp);
5257
} else {

srcCommon/redis.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class RedisCacheImpl {
6868
}
6969

7070
public getKeyPrefixes() {
71-
return [responseCacheKeyPrefix, renderCacheKeyPrefix];
71+
return [this.responseCacheKeyPrefix, this.renderCacheKeyPrefix];
7272
}
7373

7474
public updateRenderCacheKeyPrefix(decoratorVersionId: string) {

0 commit comments

Comments
 (0)