Hi Syed Junaid,
I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this!
Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to "Accept " the answer.
**
Issue:
Azure App Service (Linux): Kudu absoluteTar.sh excludes .prisma (any folder starting with ".") from node_modules during Zip Deploy
Solution:
Just to add, this can be solved (if you stick with app service), by creating a custom startup script where you run the command which adds certain hidden folders to node_modules.
For example, create a startup.sh file and add the following if you're using Prisma ORM.
# Generate Prisma client
npx --yes prisma generate --schema database/prisma/schema.prisma
# Start the server
node server.js
Then in your app service change the startup command to 'startup.sh', via Portal or any other means.
This solves the issue.
If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.