N
Nuxt3mo ago
Bazze

Layer override / File override

I've been working a little with layers. Only just realized i could have each layer as a sub repo's instead of a monorepo. But my question. Lets say i have a composable ~/composables/useCurrentUser.ts in an auth layer. If i recreate that file and function in my app project, basically "overriding" the layer with different logic. Will nuxt use my app project logic instead of the auth layers'? Extending this, when using drizzle, you gotta generate migrations once in a while. Which seems to be quite picky with specifically using drizzle-kit commands to generate them. So would it be possible to get the full paths of files in each layer ./server/db/schema/*.ts while still respecting the "overriding" from other layers and app project. So that it will be possible to construct a list of schema files in .nuxt for drizzle.config.ts
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server