Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

🔥 remove the mentioned of locale from quilt_rails and link the exampl… #1300

Merged
merged 1 commit into from
Feb 28, 2020

Conversation

michenly
Copy link
Contributor

…e to react-server directly

gems/quilt_rails/README.md Outdated Show resolved Hide resolved
Copy link
Member

@kvendrik kvendrik left a comment

Choose a reason for hiding this comment

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

Looks great! Think the only thing I feel is missing here is instructions on how to get access to common necessities like locale.

@@ -390,7 +390,7 @@ With SSR enabled React apps, state must be serialized on the server and deserial

#### Customizing the node server

By default, sewing-kit bundles in `@shopify/react-server-webpack-plugin` for `quilt_rails` applications to get apps up and running fast without needing to manually write any node server code. If what it provides is not sufficient, a custom server can be defined by adding a `server.js` or `server.ts` file to the app folder.
By default, sewing-kit bundles in [`@shopify/react-server-webpack-plugin`](../../packages/react-server-webpack-plugin/README.md) for `quilt_rails` applications to get apps up and running fast without needing to manually write any node server code. If what it provides is not sufficient, a completely custom server can be defined by adding a `server.js` or `server.ts` file to the app folder.
Copy link
Member

Choose a reason for hiding this comment

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

Love it, very clear.


export default app;
```
The simplest way to build a custom server that will work with this library is to use the APIs provided by [`@shopify/react-server`](../../packages/react-server/README.md).
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
The simplest way to build a custom server that will work with this library is to use the APIs provided by [`@shopify/react-server`](../../packages/react-server/README.md).
The simplest way to customize the server is to create a `server.tsx` file in your `app/ui` folder. This server file should export a [`@shopify/react-server`](../../packages/react-server/README.md) `createServer` call.

@michenly michenly merged commit 912873e into master Feb 28, 2020
@michenly michenly deleted the update-quilt-rails-docs branch February 28, 2020 21:44
@alexandcote alexandcote temporarily deployed to production March 4, 2020 16:53 Inactive
@helloneele helloneele deployed to test-use-memoized-number-format March 6, 2020 19:25 Active
@TayKangSheng TayKangSheng deployed to expand_locale_support_for_shopify_address March 9, 2020 08:16 Active
@michenly michenly temporarily deployed to gem March 24, 2020 21:43 Inactive
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants