Compiling with `@vercel/ncc` does not copy the `schema.prisma` file.
See original GitHub issueBug description
Compiling with vercel/ncc
does not copy the schema.prisma` file
How to reproduce
- Create a using Prisma project
- install
prisma
and@prisma/client
- install
vercel/ncc
- run
npx ncc build test.ts -o dist
- copy
dist
to Other locations other than the project
Expected behavior
No response
Prisma information
prisma : 3.11.0
@prisma/client : 3.11.0
Current platform : darwin
Query Engine (Node-API) : libquery-engine b371888aaf8f51357c7457d836b86d12da91658b (at node_modules/@prisma/engines/libquery_engine-darwin.dylib.node)
Migration Engine : migration-engine-cli b371888aaf8f51357c7457d836b86d12da91658b (at node_modules/@prisma/engines/migration-engine-darwin)
Introspection Engine : introspection-core b371888aaf8f51357c7457d836b86d12da91658b (at node_modules/@prisma/engines/introspection-engine-darwin)
Format Binary : prisma-fmt b371888aaf8f51357c7457d836b86d12da91658b (at node_modules/@prisma/engines/prisma-fmt-darwin)
Default Engines Hash : b371888aaf8f51357c7457d836b86d12da91658b
Studio : 0.458.0
Environment & setup
- OS:
- Database:
- Node.js version:
Prisma Version
3.11.0
Issue Analytics
- State:
- Created a year ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
How to deploy a Prisma app to Vercel
Prisma Migrate is based on the Prisma schema and works by generating .sql migration files that are executed against the database.
Read more >@vercel/ncc - npm
Simple CLI for compiling a Node.js module into a single file, together with all its dependencies, gcc-style.. Latest version: 0.36.0, ...
Read more >Build on Vercel with Prisma is not working recently (how to ...
In package.json , configuration below should be set so that schema.prisma file located in root path is available when app is deployed. " ......
Read more >Vercel's pkg - Package your Node.js app into a single ...
Hello all, In this short post, we will take a look at Vercel's pkg - how we can package ... Build the Node.js...
Read more >Bookmarks - Software Engineer - Simone Corsi
Please do not create issues or send pull requests. ... server with zero third-party dependencies; vercel/ncc - Compile a Node.js project into a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@janpio I further tested it, and the newly created pure ts or js project does not have this problem, but using the NestJS framework does not copy
schema.prisma
to the output directory! Maybe it’s not a Prisma problem, I need to investigate further.Note:
@vercel/ncc
is used in next.js repo https://github.com/search?q=repo%3Avercel%2Fnext.js+vercel%2Fncc&type=code