File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 11import Script from 'next/script' ;
22
3- const GTAG_ID = process . env . GTAG_ID || 'GTM-MXDVTH6' ;
3+ const GTAG_ID = process . env . NEXT_PUBLIC_GTAG_ID || 'GTM-MXDVTH6' ;
44const gtag = ( ) => (
55 < Script
66 strategy = "afterInteractive"
Original file line number Diff line number Diff line change @@ -3,9 +3,9 @@ import Head from 'next/head';
33import { TMPropsMeta } from './metaType' ;
44
55const Meta = ( props : TMPropsMeta ) => {
6- const authorName = process . env . AUTHOR_NAME ?? 'junekimdev' ;
7- const siteName = process . env . SITE_NAME ?? "another junekimdev's website" ;
8- const homeUrl = process . env . PUBLIC_URL ?? 'localhost:3000' ;
6+ const authorName = 'junekimdev' ;
7+ const siteName = "another junekimdev's website" ;
8+ const homeUrl = process . env . NEXT_PUBLIC_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,10 +2,10 @@ 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- PUBLIC_URL : process . env . PUBLIC_URL ,
6- // CMS_URL : process.env.CMS_URL ,
7- // GTAG_ID : process.env.GTAG_ID ,
8- API_URL : process . env . API_URL ,
5+ NEXT_PUBLIC_PUBLIC_URL : process . env . NEXT_PUBLIC_PUBLIC_URL ,
6+ // NEXT_PUBLIC_CMS_URL : process.env.NEXT_PUBLIC_CMS_URL ,
7+ // NEXT_PUBLIC_GTAG_ID : process.env.NEXT_PUBLIC_GTAG_ID ,
8+ NEXT_PUBLIC_API_URL : process . env . NEXT_PUBLIC_API_URL ,
99 } ,
1010 // @see https://github.com/zeit/next.js/wiki/Deployment
1111 // When process.env.BUILD_ID is undefined, fall back to the default
You can’t perform that action at this time.
0 commit comments