-
Notifications
You must be signed in to change notification settings - Fork 9
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
3627 remove isdev from exposed interface #193
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are two improvement that I think would be necessary for this:
-
Can we use have the DEVMODE variable be read from an environment variable?
-
Can we remove the
isDev
parameter from the kitConfig and then replace instances in which isDev would normally be used with that DEVMODE variable?
https://github.com/0xsequence/kit/blob/master/packages/kit/src/types.ts#L78
@SamueleA I must've forgotten to push my latest changes. I've removed all isDev from config and kit packages and added a workaround for env variables since the packages aren't able to read env variables from outside the packages folder. |
5dec4a3
to
57e0b91
Compare
dd2b5c5
to
9f6016b
Compare
2817ec6
to
cdcae2b
Compare
cdcae2b
to
8e513a5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
@@ -0,0 +1,12 @@ | |||
const fs = require('fs') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should not generate an env file that overrides env.ts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would potentially get committed into the code base.
@@ -0,0 +1 @@ | |||
export const DEVMODE = false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file should simply reexport the process.env.DEVMODE
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or process.env.DEVMODE should just be used directly instead
No description provided.