Pinned Loading
-
Turborepo + Docker
Turborepo + Docker 1FROM node:16-alpine AS builder2RUN apk update3WORKDIR /app4RUN yarn global add turbo5COPY . . -
SSR에서 여러 api콜 병렬로 처리 + return 타입 고정
SSR에서 여러 api콜 병렬로 처리 + return 타입 고정 1type OptionsDataType<T> = {
2data: T
3url: string
4method: Method
5} -
nextjs custom serverSideProps with auth
nextjs custom serverSideProps with auth 1import { GetServerSideProps, GetServerSidePropsContext } from 'next'
2import axios from 'axios'
3import { getToken } from 'utils'
45export function serverSidePropsWithAuth(getServerSidePropsFunc?: GetServerSideProps) {
-
_next/data 라우팅 hook으로 커스텀하기
_next/data 라우팅 hook으로 커스텀하기 1import type { AppProps } from 'next/app'
23function App({ pageProps, router }: AppProps) {
45useInterceptNextDataHref({
-
rxjs로 allSettled 구현하기
rxjs로 allSettled 구현하기 1export class NetworkResultEntity<T> {
2constructor(
3public isSuccess: boolean,
4public data: T | undefined,
5public error: any,
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.