chore: update dev container to support api client generation

This commit is contained in:
Dominik 2025-06-16 14:09:04 +02:00
parent 71a401ec9f
commit f835afda7e
Signed by: dominik
GPG key ID: 06A4003FC5049644
3 changed files with 9 additions and 1 deletions

View file

@ -13,6 +13,7 @@ services:
- .env.local
volumes:
- ./data:/data
- ./src/generated:/app/src/generated
develop:
watch:
- action: sync
@ -20,8 +21,12 @@ services:
target: /app/src
ignore:
- node_modules/
- generated/
- action: rebuild
path: package.json
- action: sync+restart
path: prisma
target: /app/prisma
- action: sync+restart
path: ./src/app/api
target: /app/src/app/api

View file

@ -7,4 +7,7 @@ if [ -d "prisma" ]; then
yarn prisma:db:push
fi
yarn swagger:generate
yarn orval:generate
exec yarn dev

View file

@ -2,6 +2,6 @@ export { auth as middleware } from '@/auth';
export const config = {
matcher: [
'/((?!api|_next/static|api-doc|_next/image|site\.webmanifest|web-app-manifest-(?:192x192|512x512)\.png|favicon(?:-(?:dark|light))?\.(?:png|svg|ico)|fonts).*)',
'/((?!api|_next/static|api-doc|_next/image|site\.webmanifest|web-app-manifest-(?:192x192|512x512)\.png|apple-touch-icon.png|favicon(?:-(?:dark|light))?\.(?:png|svg|ico)|fonts).*)',
],
};