-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
46 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# `.env.local` always overrides the defaults set. | ||
# see more https://nextjs.org/docs/basic-features/environment-variables | ||
NEXT_PUBLIC_SITE_NAME=mkn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { IDotEnv } from '@/interfaces'; | ||
|
||
// can't pass { ...env } parsing, MUST correspond to 1 to 1 | ||
export const envConfig: IDotEnv = { | ||
NEXT_PUBLIC_SITE_NAME: (process.env as IDotEnv).NEXT_PUBLIC_SITE_NAME, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
export * from './env.config'; | ||
export * from './build.config'; | ||
// export * from './build.config'; | ||
export * from './pkg.config'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,3 @@ | ||
import { IBuild, IDotEnv } from '@/interfaces'; | ||
import pkg from '../../package.json'; | ||
|
||
const envConfig: IDotEnv = (process.env as unknown) as IDotEnv; | ||
|
||
export const buildConfig: IBuild = envConfig?.BUILD_DATA || { | ||
BUILDTIME: '', | ||
MODE: '', | ||
VERSION: '', | ||
VERSION_DASH: '', | ||
VERSION_HASH: '', | ||
VERSION_NUMBER: '', | ||
}; | ||
export const pkgConfig = pkg; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export { default as useDarkMode } from './useDarkMode'; | ||
export { useDarkMode } from './useDarkMode'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
export interface IDotEnv { | ||
NEXT_PUBLIC_SITE_NAME?: string; | ||
// NEXT_PUBLIC_BUILD_DATA?: IBuild; | ||
} | ||
|
||
export interface IBuild { | ||
MODE: string; | ||
VERSION: string; | ||
VERSION_DASH: string; | ||
VERSION_NUMBER: string; | ||
VERSION_HASH: string; | ||
BUILDTIME: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
export * from './router.interface'; | ||
export * from './config.interface'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
/* eslint-disable max-len, import/prefer-default-export */ | ||
export { default as MasterLayout } from './MasterLayout/MasterLayout'; | ||
export { MasterLayout } from './MasterLayout/MasterLayout'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ html, | |
body, | ||
#root, | ||
#__next, | ||
.app { | ||
#app { | ||
height: 100%; | ||
} | ||
|
||
|