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
## Assuming you want to build ./services/app that also depends on something like ./packages/ui | |
FROM node:22.12.0-alpine3.21 AS base | |
ENV PNPM_HOME="/pnpm" | |
ENV PATH="$PNPM_HOME:$PATH" | |
RUN corepack enable | |
COPY . /app | |
WORKDIR /app |
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
import cookie from 'cookie'; | |
// types | |
import type { NextApiResponse, NextApiRequest } from 'next'; | |
// mocks | |
import { mockUser } from 'mocks/user'; | |
const handler = (req: NextApiRequest, res: NextApiResponse) => { | |
if (req.method === 'POST') { |