-
Notifications
You must be signed in to change notification settings - Fork 47.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for SSR2 fixture not working locally (#24237)
* SS2 fixture not working locally fix * Fix prettier issue * prettier excess line fix * Update render.js * Update README.md Co-authored-by: dan <[email protected]>
- Loading branch information
1 parent
c325da0
commit 51173d9
Showing
3 changed files
with
36 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# SSR Fixtures | ||
|
||
A set of test cases for quickly identifying issues with server-side rendering. | ||
|
||
## Setup | ||
|
||
To reference a local build of React, first run `npm run build` at the root | ||
of the React project. Then: | ||
|
||
``` | ||
cd fixtures/ssr2 | ||
yarn | ||
yarn start | ||
``` | ||
|
||
The `start` command runs a webpack dev server and a server-side rendering server in development mode with hot reloading. | ||
|
||
**Note: whenever you make changes to React and rebuild it, you need to re-run `yarn` in this folder:** | ||
|
||
``` | ||
yarn | ||
``` | ||
|
||
If you want to try the production mode instead run: | ||
|
||
``` | ||
yarn start:prod | ||
``` | ||
|
||
This will pre-build all static resources and then start a server-side rendering HTTP server that hosts the React app and service the static resources (without hot reloading). |
This file contains 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
This file contains 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