August 11, 2024 • ☕️ 5 min read
App Router
app/ 디렉토리 내에 routes를 직접 정의해야 한다. (자유도가 높다)getServerSideProps, getStaticProps, getInitialProps와 같은 메서드는 더이상 사용하지 않는 대신, RSC 기반으로 일반적인 방법으로 서버 데이터를 가져온다.
Pages Router
Ref
pnpm v9부터 지원
pnpm monorepo에서 특정 패키지의 단일 버전만 사용할 때 사용한다.
# pnpm-workspace.yaml
packages:
- packages/*
# Define a catalog of version ranges.
catalog:
react: ^18.3.1
redux: ^5.0.1
// packages/example-app/package.json
{
"name": "@example/app",
"dependencies": {
"react": "catalog:",
"redux": "catalog:"
}
}Access-Control-Allow-Private-Network 헤더 설정을 통해 해결할 수 있다.Ref
Tape Archive 의 약자로, 여러 파일 및 디렉토리를 단일 아카이브 파일로 묶은 것
무손실 무압축 (압축 X) 방식을 사용하여 메타데이터 보존이 가능하다.
메타데이터 파일 및 디렉토리의 권한, 소유자, 그룹 등의 정보
tar 파일은 gzip으로 압축할 수 있으며, 압축 시 파일 형식은 tgz가 된다.
tar는 거의 모든 운영체제에서 사용 가능하며, 다른 운영 체제 간에 백업 및 파일을 전송할 때 유용하다.
‘타르볼’이라고도 불림
pnpm을 사용하는 레포에서, 패키지 배포 없이 로컬에서 빌드해서 바로 테스트하는 방법
pnpm build && pnpm pack >> pnpm pack을 하면 타르볼을 생성해준다.
YAML Scalar는 단순한 데이터 타입으로,
를 표현할 때 사용된다.
YAML의 Scalar는 Block Scalar와 Flow Scalar로 나뉜다.
Block Scalar는 literal, folded 두 개의 scalar 스타일을 지원한다. 각각 |, >를 사용하여 표기한다.
[literal block]
summary: regular scalar
description: |
This is my sentence with the literal scalar.
And another sentence.
operationId: jasmint[folded block]
summary: regular scalar
description: >
This is my sentence with the folded scalar.
And another sentence starts without a preceding line break.
And a sentence starts with a preceding line break, because there are two consecutive line breaks preceding this line.
operationId: jasmintFlow Scalar는 다음과 같이 사용한다. 인덴트를 통해서만 줄바꿈을 표기한다.
Summary: regular scalar
Description: This is my sentence with a flow scalar.
And this is my next sentence.
operationId: scalyRef https://redocly.com/docs/yaml/blocks-and-flows
Ref https://github.com/naver/fe-news/blob/master/issues/2024-08.md
밴드 MT를 다녀왔다. 저 멀리 천안까지 합주실 있는 펜션을 찾아 떠난 20명의 부원들
어른이 되고 가보는 첫 MT!
정말 다들 미친듯이, 술 마시고 합주하고 술 마시고 합주하고… 🥁
그리고 기절잠을 자고 일어난 지금, 누가 드럼스틱으로 잔뜩 두들긴 느낌이다. 😇