File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,11 @@ const nextConfig = {
1111 // VERCEL_ENV is a system env var set by Vercel
1212 // https://vercel.com/docs/projects/environment-variables/system-environment-variables
1313 // basePath: process.env.VERCEL_ENV === 'production' ? '/docs' : '',
14- basePath : process . env . VERCEL_ENV === 'production' ? '/docs' : ''
14+ basePath : process . env . VERCEL_ENV === 'production' ? '/docs' : '' ,
15+ env : {
16+ NEXT_PUBLIC_DOCS_BASE_PATH :
17+ process . env . VERCEL_ENV === 'production' ? '/docs' : ''
18+ }
1519} ;
1620
1721module . exports = async ( ) => {
Original file line number Diff line number Diff line change 11export function Logo ( props : React . ComponentPropsWithoutRef < 'svg' > ) {
2- const basePath = process . env . VERCEL_ENV === 'production' ? '/docs' : '' ;
2+ const basePath = process . env . NEXT_PUBLIC_DOCS_BASE_PATH || '' ;
33
44 return (
55 < >
You can’t perform that action at this time.
0 commit comments