-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: script 명령어 변경 * chore: @types/react-syntax-highlighter 패키지 추가 * chore: UTC를 년/월/일 형태로 바꿔주는 헬퍼 함수 추가 * chore: 글로벌 컬러 변수명 및 색깔 교체 * chore: h1, h2, h3 스타일 globals.css에 추가 * style: Typograph 컴포넌트 내 h3 font-weight 변경 * feat: TIL 페이지 구현 2차 (#147) * chore: typegen 기능 on * chore: SanityPost non-nullable 타입 정의 * chore: 불필요한 타입 삭제 * fix: 타입 에러 * chore: typegen에 의해 생성된 파일 추가 * feat: Sanity 연동하여 TIL 페이지 구현 * fix: gatsby node 관련 이슈 해결
- Loading branch information
Showing
13 changed files
with
6,628 additions
and
430 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
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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
diff --git a/node_modules/gatsby/dist/utils/webpack.config.js b/node_modules/gatsby/dist/utils/webpack.config.js | ||
index cf4bdd5..dc7013a 100644 | ||
--- a/node_modules/gatsby/dist/utils/webpack.config.js | ||
+++ b/node_modules/gatsby/dist/utils/webpack.config.js | ||
@@ -746,15 +746,35 @@ module.exports = async (program, directory, suppliedStage, port, { | ||
if (stage === `build-html`) { | ||
const builtinModulesToTrack = [`fs`, `http`, `http2`, `https`, `child_process`]; | ||
|
||
- const builtinsExternalsDictionary = _module.builtinModules.reduce((acc, builtinModule) => { | ||
- if (builtinModulesToTrack.includes(builtinModule)) { | ||
- acc[builtinModule] = `commonjs ${path.join(program.directory, `.cache`, `ssr-builtin-trackers`, builtinModule)}`; | ||
- } else { | ||
- acc[builtinModule] = `commonjs ${builtinModule}`; | ||
- } | ||
- | ||
- return acc; | ||
- }, {}); | ||
+ const builtinsExternalsDictionary = _module.builtinModules.reduce( | ||
+ (acc, builtinModule) => { | ||
+ if (builtinModulesToTrack.includes(builtinModule)) { | ||
+ const builtinModuleTracked = path.join( | ||
+ program.directory, | ||
+ `.cache`, | ||
+ `ssr-builtin-trackers`, | ||
+ builtinModule | ||
+ ) | ||
+ acc[builtinModule] = `commonjs ${builtinModuleTracked}` | ||
+ acc[`node:${builtinModule}`] = `commonjs ${builtinModuleTracked}` | ||
+ } else { | ||
+ acc[builtinModule] = `commonjs ${builtinModule}` | ||
+ acc[`node:${builtinModule}`] = `commonjs ${builtinModule}` | ||
+ } | ||
+ return acc | ||
+ }, | ||
+ {} | ||
+ ) | ||
+ | ||
+ // const builtinsExternalsDictionary = _module.builtinModules.reduce((acc, builtinModule) => { | ||
+ // if (builtinModulesToTrack.includes(builtinModule)) { | ||
+ // acc[builtinModule] = `commonjs ${path.join(program.directory, `.cache`, `ssr-builtin-trackers`, builtinModule)}`; | ||
+ // } else { | ||
+ // acc[builtinModule] = `commonjs ${builtinModule}`; | ||
+ // } | ||
+ | ||
+ // return acc; | ||
+ // }, {}); | ||
|
||
config.externals.unshift(builtinsExternalsDictionary); | ||
} |
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
Oops, something went wrong.
e92d2e9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
blog-renewal – ./
blog-renewal-wherehows.vercel.app
blog-wherehows.vercel.app
blog-renewal-git-main-wherehows.vercel.app