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

Fix no-code-demo with correct config #6463

Merged
merged 2 commits into from
Dec 6, 2021
Merged

Fix no-code-demo with correct config #6463

merged 2 commits into from
Dec 6, 2021

Conversation

smeng9
Copy link
Contributor

@smeng9 smeng9 commented Jul 24, 2021

Closes #6432

Here is an example codesandbox project with the changed config file that is working:
https://codesandbox.io/s/affectionate-allen-0xqij?file=/vite.config.ts:0-187

Copy link
Contributor

@djhi djhi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! However, this change would make local development cumbersome. It would be nice to detect we are on codesandbox and avoid aliases only in this case

@smeng9
Copy link
Contributor Author

smeng9 commented Nov 9, 2021

Hi @djhi, with environment variable detection it works as expected. Thanks.

https://codesandbox.io/s/github/smeng9/react-admin/tree/no-code-demo-fix/examples/no-code?file=/vite.config.ts

Copy link
Contributor

@djhi djhi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@djhi djhi merged commit 12c292f into marmelab:master Dec 6, 2021
@WiXSL
Copy link
Contributor

WiXSL commented Dec 6, 2021

@djhi, you forgot to add it to the Milestone

@djhi djhi added this to the 3.19.3 milestone Dec 6, 2021
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.

[Lab] no-code example cannot start in codesandbox
3 participants