Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

entities 인식 패턴 변경 #2

Open
develjsw opened this issue May 28, 2023 · 0 comments
Open

entities 인식 패턴 변경 #2

develjsw opened this issue May 28, 2023 · 0 comments

Comments

@develjsw
Copy link
Owner

develjsw commented May 28, 2023

app.module 파일에서 하드 코딩 된 TypeOrmModule 설정 값은 entities 인식 패턴을 as-is로 진행해도 무방했으나,
configuration 파일로 분리하여 적용하는 경우 인식하지 못하는 이슈 발생하여 변경 진행.

as-is - entities: [__dirname + '//*.entity{.ts,.js}'] // 작업 디렉토리 경로에서 entity 패턴 인식
to-be - entities: ['dist/
/entities/*.entity{.ts,.js}'] // 빌드된 파일 경로에서 entity 패턴 인식

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant