Skip to content
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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

andrewlee348
Copy link
Contributor

No description provided.

Copy link
Contributor

@SamueleA SamueleA left a 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:

  1. Can we use have the DEVMODE variable be read from an environment variable?

  2. 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

@andrewlee348 andrewlee348 marked this pull request as draft November 18, 2024 18:42
@andrewlee348
Copy link
Contributor Author

@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.

@andrewlee348 andrewlee348 force-pushed the 3627-remove-isdev-from-exposed-interface branch 2 times, most recently from 5dec4a3 to 57e0b91 Compare November 18, 2024 21:18
@andrewlee348 andrewlee348 force-pushed the 3627-remove-isdev-from-exposed-interface branch 2 times, most recently from dd2b5c5 to 9f6016b Compare November 18, 2024 22:25
@andrewlee348 andrewlee348 force-pushed the 3627-remove-isdev-from-exposed-interface branch 7 times, most recently from 2817ec6 to cdcae2b Compare November 18, 2024 23:05
@andrewlee348 andrewlee348 force-pushed the 3627-remove-isdev-from-exposed-interface branch from cdcae2b to 8e513a5 Compare November 18, 2024 23:13
@andrewlee348 andrewlee348 marked this pull request as ready for review November 18, 2024 23:16
Copy link
Contributor

@SamueleA SamueleA left a 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')
Copy link
Collaborator

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

Copy link
Collaborator

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
Copy link
Collaborator

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

Copy link
Collaborator

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

@corbanbrook
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants