Configure default entry points
Hydrogen includes the following default entry points for your app:
- Client entry point:
@shopify/hydrogen/entry-client, which is included in
index.htmland used for hydration purposes
- Server entry point:
You can configure the default entry points for your app.
Change the client entry pointAnchor link to section titled "Change the client entry point"
If you need to change the client entry point, then create a new file such as
src/entry-client.jsx with the following code and update the path in
Change the server entry pointAnchor link to section titled "Change the server entry point"
If you need to change the server entry point, then make the following updates in the
- Development: Pass a
HYDROGEN_SERVER_ENTRYenvironment variable to the development command.
- Production: Use a
--ssrflag when building your app.