-
Notifications
You must be signed in to change notification settings - Fork 19
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(build, routerTypes): issues/34 dynamic routing baseName #68
Conversation
Codecov Report
@@ Coverage Diff @@
## master #68 +/- ##
==========================================
+ Coverage 88.09% 88.66% +0.57%
==========================================
Files 23 23
Lines 294 300 +6
Branches 62 64 +2
==========================================
+ Hits 259 266 +7
+ Misses 28 27 -1
Partials 7 7
Continue to review full report at Codecov.
|
* build, dotenv path prefix * build, html template add in lang attribute from dotenv * routerTypes, create a dynamic routing baseName
* build, dotenv path prefix * build, html template add in lang attribute from dotenv * routerTypes, create a dynamic routing baseName
@@ -1,5 +1,5 @@ | |||
<!DOCTYPE html> | |||
<html lang="en"> | |||
<html lang="%REACT_APP_CONFIG_SERVICE_LOCALES_DEFAULT_LNG%"> |
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.
nice!
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.
INDEED! =)
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.
LGTM
What's included
Notes
How to test
Coverage and basic unit test check
$ yarn
$ yarn test
Interactive unit test check
$ yarn
$ yarn test:dev
Local run
$ yarn
$ yarn start
rhel
routerhel
pathhttp://localhost:3000/lorem/ipsum/dolor/sit
should end up being ->http://localhost:3000/lorem/ipsum/rhel
http://localhost:3000/lorem/ipsum/rhel/rhel/rhel
should end up being ->http://localhost:3000/lorem/ipsum/rhel
beta
path part of the check, first stop the previous local run server, then run$ export UI_DEPLOY_PATH_PREFIX=/beta; yarn start; unset UI_DEPLOY_PATH_PREFIX
rhel
pathhttp://localhost:3000/beta/lorem/ipsum/dolor/sit
should end up being ->http://localhost:3000/beta/lorem/ipsum/rhel
http://localhost:3000/beta/lorem/ipsum/rhel/rhel/rhel
should end up being ->http://localhost:3000/beta/lorem/ipsum/rhel
Example
...
Updates issue/story
Updates #34