Skip to content

Commit 0cd92c0

Browse files
committed
Elimino SSR para comcols/(search|subcoms-cols)$
1 parent 94d5e96 commit 0cd92c0

4 files changed

Lines changed: 36 additions & 0 deletions

File tree

config/config.example.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ ssr:
3131
flag: "i"
3232
- pattern: "^/collections/[a-f0-9-]{36}/browse(/.*)?$"
3333
flag: "i"
34+
# Exclude community/collection sub-routes that cause SSR hydration flicker.
35+
# The base route (/communities/UUID) keeps SSR for SEO purposes.
36+
- pattern: "^/communities/[a-f0-9-]{36}/(search|subcoms-cols)$"
37+
flag: "i"
38+
- pattern: "^/collections/[a-f0-9-]{36}/search$"
39+
flag: "i"
3440
- pattern: "^/browse/"
3541
- pattern: "^/search$"
3642
- pattern: "^/community-list$"

src/environments/environment.production.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,16 @@ export const environment: Partial<BuildConfig> = {
1919
pattern: '^/collections/[a-f0-9-]{36}/browse(/.*)?$',
2020
flag: 'i',
2121
},
22+
// Exclude community/collection sub-routes that cause SSR hydration flicker.
23+
// The base route (/communities/UUID) keeps SSR for SEO purposes.
24+
{
25+
pattern: '^/communities/[a-f0-9-]{36}/(search|subcoms-cols)$',
26+
flag: 'i',
27+
},
28+
{
29+
pattern: '^/collections/[a-f0-9-]{36}/search$',
30+
flag: 'i',
31+
},
2232
{ pattern: '^/browse/' },
2333
{ pattern: '^/search' },
2434
{ pattern: '^/community-list$' },

src/environments/environment.test.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,16 @@ export const environment: BuildConfig = {
2323
pattern: '^/collections/[a-f0-9-]{36}/browse(/.*)?$',
2424
flag: 'i',
2525
},
26+
// Exclude community/collection sub-routes that cause SSR hydration flicker.
27+
// The base route (/communities/UUID) keeps SSR for SEO purposes.
28+
{
29+
pattern: '^/communities/[a-f0-9-]{36}/(search|subcoms-cols)$',
30+
flag: 'i',
31+
},
32+
{
33+
pattern: '^/collections/[a-f0-9-]{36}/search$',
34+
flag: 'i',
35+
},
2636
{ pattern: '^/browse/' },
2737
{ pattern: '^/search' },
2838
{ pattern: '^/community-list$' },

src/environments/environment.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,16 @@ export const environment: Partial<BuildConfig> = {
2424
pattern: '^/collections/[a-f0-9-]{36}/browse(/.*)?$',
2525
flag: 'i',
2626
},
27+
// Exclude community/collection sub-routes that cause SSR hydration flicker.
28+
// The base route (/communities/UUID) keeps SSR for SEO purposes.
29+
{
30+
pattern: '^/communities/[a-f0-9-]{36}/(search|subcoms-cols)$',
31+
flag: 'i',
32+
},
33+
{
34+
pattern: '^/collections/[a-f0-9-]{36}/search$',
35+
flag: 'i',
36+
},
2737
{ pattern: '^/browse/' },
2838
{ pattern: '^/search' },
2939
{ pattern: '^/community-list$' },

0 commit comments

Comments
 (0)