File tree Expand file tree Collapse file tree 3 files changed +14
-3
lines changed
Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,9 @@ loading across the platform.
4343 <tr >
4444 <td align="center"><b>deployment</b></td>
4545 <td>
46- <img src="https://img.shields.io/badge/Vercel-black?style=flat&logo=Vercel&logoColor=white" alt="Vercel" />
46+ <img src="https://img.shields.io/badge/Vercel-black?style=flat&logo=Vercel&logoColor=white" alt="Vercel" /> <i>(used until 2024)</i>
47+ <br/>
48+ <img src="https://img.shields.io/badge/Docker-2496ED?style=flat&logo=Docker&logoColor=white" alt="Docker" /> current self-hosted
4749 </td>
4850 </tr >
4951</table >
Original file line number Diff line number Diff line change @@ -6,6 +6,9 @@ const withVanillaExtract = createVanillaExtractPlugin();
66/** @type {import('next').NextConfig } */
77const nextConfig = {
88 reactStrictMode : true ,
9+ env : {
10+ NEXT_PUBLIC_VERCEL : process . env . VERCEL ,
11+ }
912} ;
1013
1114export default withVanillaExtract ( withPlaiceholder ( nextConfig ) ) ;
Original file line number Diff line number Diff line change @@ -9,13 +9,19 @@ type ProvidersProps = {
99 children : ReactNode ;
1010} ;
1111
12+ const isVercel = process . env . NEXT_PUBLIC_VERCEL === '1' ;
13+
1214const Providers = ( { children } : ProvidersProps ) => {
1315 useScreenSize ( ) ;
1416
1517 return (
1618 < >
17- < Analytics />
18- < SpeedInsights />
19+ { isVercel && (
20+ < >
21+ < Analytics />
22+ < SpeedInsights />
23+ </ >
24+ ) }
1925 { children }
2026 </ >
2127 ) ;
You can’t perform that action at this time.
0 commit comments