You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import 순서를 정렬하기 위해 Prettier 플러그인인 @trivago/prettier-plugin-sort-imports를 사용하고 있습니다.
26
30
27
31
TODO: eslint-plugin-import의 import/order로 변경, 규칙 목록 작성
28
32
29
33
## 프로젝트 구조
34
+
30
35
- public: 정적 파일
31
36
- docs: 문서 파일
32
37
- src
38
+
- /api: API call 인터페이스
39
+
- /apps: Next.js 지정 app 파일
33
40
- /components: 공용 컴포넌트 파일
34
41
- /constants: 상수 파일
35
42
- /containers: 비공용 컴포넌트 파일
36
-
- /context:
43
+
- /context: React 컨텍스트 파일
37
44
- /libs: 외부 라이브러리 사용 파일
38
-
- /pages: Next.js 지정 page 파일
39
-
- /services: API call 인터페이스
40
45
- /styles: 정적 css 파일
41
46
- /types: TypeScript 타입 정의 파일
42
47
- /utils: 유틸성 함수
43
48
- .env: 공개 환경 변수
44
49
- .env.local: 미공개 환경 변수
45
50
- .eslintrc.json: ESLint 설정
46
51
- .prettierrc.json: Prettier 설정
47
-
52
+
- headver.json: 버저닝중 head 버전 관리용 파일
53
+
- tailwind.config.js: Tailwind CSS 설정
54
+
- tsconfig.json: TypeScript 설정
48
55
49
56
## 인증 처리
57
+
50
58
인증 처리를 공통으로 처리하기 위하여, 인증과 관련된 절차를 자동으로 처리해주는 axios client가 utils에 준비되어 있습니다.
51
59
52
-
모든 인증이 필요한 API 요청은 기본적으로 server side rendering이 아닌, client side rendering 단계에서 진행하고 있습니다. 인증이 필요하지 않은 페이지는, 기본적으로 server side rendering과 static rendering을 사용하는 것을 권장합니다.
60
+
모든 인증이 필요한 API 요청은 기본적으로 server side rendering이 아닌, client side rendering 단계에서 진행하고 있습니다. 인증이 필요하지 않은 페이지는, 기본적으로 server side rendering과 static rendering을 사용하는 것을 권장합니다.
0 commit comments