Closed alasarr closed 3 years ago
This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.
🔍 Inspect: https://vercel.com/carto-frontend/cra-template-carto/EqdXjDySToKiaeVXwtiKKECo8kWC
✅ Preview: https://cra-template-carto-git-carto-cloud-native-carto-frontend.vercel.app
@borja-munoz hygen is available.
To make this compatible with cloud native I've create an environment variable that you can pass to hygen generator.
Example for carto cloud native:
CARTO_REACT_MODE='carto-cloud-native' npx hygen source new
Example for carto:
CARTO_REACT_MODE='carto' npx hygen source new
// or just skip the environment var since carto is the default
npx hygen source new
The same applies to other commands like view or layer
Is there any way to avoid the need to specify the environment variable? I mean something we can inspect (like the use of Auth0 in the App.js file). I don't like too much having to use an env var.
Is there any way to avoid the need to specify the environment variable? I mean something we can inspect (like the use of Auth0 in the App.js file). I don't like too much having to use an env var.
Open to a better ideas. but don't like the hack/magic of inspecting other files.