File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ ARG GIT_HASH
2424
2525ENV NODE_ENV=production \
2626 BUILD_ID=${GIT_HASH} \
27- NEXT_PUBLIC_PUBLIC_URL =https://mydomain.com \
27+ NEXT_PUBLIC_URL =https://mydomain.com \
2828 NEXT_PUBLIC_GTAG_ID=GTM-MXDVTH6
2929
3030# Add all files
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { TMPropsMeta } from './metaType';
55const Meta = ( props : TMPropsMeta ) => {
66 const authorName = 'junekimdev' ;
77 const siteName = "another junekimdev's website" ;
8- const homeUrl = process . env . NEXT_PUBLIC_PUBLIC_URL ?? 'localhost:3000' ;
8+ const homeUrl = process . env . NEXT_PUBLIC_URL ?? 'localhost:3000' ;
99 const {
1010 image = `${ homeUrl } /assets/images/LogoPlace_Extended_1200x627.png` ,
1111 imageWidth = '1200' ,
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ module.exports = {
22 // @see https://nextjs.org/docs/api-reference/next.config.js/environment-variables
33 // This sets environment variable for SSR
44 env : {
5- NEXT_PUBLIC_PUBLIC_URL : process . env . NEXT_PUBLIC_PUBLIC_URL ,
5+ NEXT_PUBLIC_URL : process . env . NEXT_PUBLIC_URL ,
66 //NEXT_PUBLIC_CMS_URL: process.env.NEXT_PUBLIC_CMS_URL,
77 //NEXT_PUBLIC_GTAG_ID: process.env.NEXT_PUBLIC_GTAG_ID,
88 NEXT_PUBLIC_API_URL : process . env . NEXT_PUBLIC_API_URL ,
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import MainFrame from '../components/mainFrame';
44import Meta from '../components/meta' ;
55
66const Page = ( ) => {
7- const publicUrl = process . env . PUBLIC_URL || 'localhost:3000' ;
7+ const publicUrl = process . env . NEXT_PUBLIC_URL ?? 'localhost:3000' ;
88
99 useEffect ( ( ) => {
1010 window . scrollTo ( 0 , 0 ) ;
You can’t perform that action at this time.
0 commit comments