Skip to content

Conversation

jareddonovan
Copy link
Contributor

@jareddonovan jareddonovan commented Jun 8, 2018

Before your pull request is reviewed and merged, please ensure that:

  • there are no linting errors -- npm run lint (There are linting errors, but not from any of the files I have touched. Do you still want me to fix these?).

  • your code is in a uniquely-named feature branch and has been rebased on top of the latest master. If you're asked to make more changes, make sure you rebase onto master then too!

  • your pull request is descriptively named and links to an issue number, i.e. Fixes #646

This pull request addresses Issue #646. It improves the wording of the readme to clarify that the example user will be created with whatever username is provided in the .env file and also uses this value in the code. Previously, several locations in the code used a hard-coded value of "p5" for the example user.

I am an absolute novice with node and react, so please check that what I've done is sensible!

Jared Donovan added 5 commits June 8, 2018 13:56
Add the server-side process.env.EXAMPLE_USERNAME variable to the
webpack.DefinePlugin declaration so that it can be accessed
client-side. Make use of this in Nav.jsx so that examples are retrieved
from the actual example user.
@@ -217,7 +217,7 @@ class Nav extends React.PureComponent {
</li> }
<li className="nav__dropdown-item">
<Link
to="/p5/sketches"
to={`/${process.env.EXAMPLE_USERNAME}/sketches`}
Copy link
Member

Choose a reason for hiding this comment

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

l know this works fine in the development env:) but l don't know if it works in the production env

@catarak
Copy link
Member

catarak commented Jun 8, 2018

hey @awarua, i put some of my thoughts about this in #646. let me know what you think!

@jareddonovan
Copy link
Contributor Author

Closing this because it is better addressed by #651

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