-
Notifications
You must be signed in to change notification settings - Fork 328
Adds isomorphic/server-side React application-shell rendering #35
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
cd50242
Isomorphic-shell: add guards for window globals
addyosmani 584ac4f
Isomorphic-shell: add EJS index view
addyosmani 2731fe5
Isomorphic-shell: Stories -> switch to componentDidMount to fix serve…
addyosmani 96d4d9d
Isomorphic-shell: add Server portion
addyosmani c55b325
Isomorphic-shell: replace DOM-based URL parsing w/SSR friendly one
addyosmani 6940401
Isomorphic-shell: move index to index-static
addyosmani a0de5ed
Isomorphic-shell: devdeps -> deps, add new deps
addyosmani 8a8fbd5
Isomorphic-shell: Add Google App Engine Node config for deploys
addyosmani 3a3e4ff
Isomorphic-shell: refresh of build pipeline
addyosmani d7f6c52
Update branch to reflect master
addyosmani 16606c1
add env variable for production
addyosmani 62b6b2c
add defaultValue return to guard
addyosmani bac1f38
Minor: linting nit
addyosmani File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
add env variable for production
- Loading branch information
commit 16606c158b5a2c81c30e8ed88b08686e1e9a10d0
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,7 @@ | ||
| runtime: nodejs | ||
| vm: true | ||
| env_variables: | ||
| NODE_ENV: production | ||
|
|
||
| skip_files: | ||
| - ^(.*/)?.*/node_modules/.*$ | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Does this come with any predefined environment variables?
If not, setting
NODE_ENVtoproductionwill make Express cache the view templateThere 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.
You're right. It looks like GAE does support environment variables: https://cloud.google.com/appengine/docs/flexible/nodejs/configuring-your-app-with-app-yaml#Node.js_app_yaml_Defining_environment_variables. I'll update.