-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Adds CLI flags to dev
build
and start
to change what is built and run
#8046
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 3c55c60:
|
9078d83
to
599e0fa
Compare
599e0fa
to
7a4837d
Compare
db93d6d
to
d9a378d
Compare
4d91146
to
d2b8acd
Compare
d2b8acd
to
1ccb5b9
Compare
1b000b6
to
a1fa327
Compare
a1fa327
to
69d8aa4
Compare
@borisno2 Am I able to build the admin ui separately yet? |
31d0e37
to
aae3431
Compare
aae3431
to
d60c825
Compare
d60c825
to
3c55c60
Compare
Moved the removal of |
…rom being used (#8455) Co-authored-by: Daniel Cousens <413395+dcousens@users.noreply.github.com>
What is the reasoning behind deprecation of |
Currently, Keystone provides the
useMigrations
config option to either enable or disable the generation of Prisma Migrations. WhenuseMigrations
isfalse
, the default, runningkeystone dev
performs a schema push to the DB and forces a reset if there is any drift. WhenuseMigrations
istrue
runningkeystone dev
will generate the prisma migrations and also reset the DB if there is any drift.The aim of this PR to give the developer more options when it comes to migrations. The current behaviour remains however the following is added:
keystone prisma
CLI to use the built configuration when the--frozen
flag is used so that uncompiledts
files are not required after a build step - helpful when building Docker images without needingkeystone.ts
and all its dependencies.--no-db-push
flag forkeystone dev
that skips the schema push to the DB whenuseMigrations
is set tofalse
orundefined
, used if you don't want to force keystone to use the database you have, for example, an existing DB you don't want to have migrations for.build
so that it generates the schema files and adds a--frozen
flag tobuild
to force it to just validate instead (current behaviour)--no-server
todev
to run dev without express, useful when not using express - ie Keystone in Next--no-ui
(dev
,build
andstart
) and--no-prisma
(dev
andbuild
) to build and/or run keystone either without the AdminUI or without PrismauseMigrations
as deprecated - this config option will be removed in the next major release - usekeystone prisma migrate dev
to generate database migrations. To mirror existing behaviour ofuseMigrations
usekeystone prisma migrate dev && keystone dev --no-db-push