Configure default entry points

Hydrogen includes the following default entry points for your app:

You can configure the default entry points for your app.

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 index.html:

If you need to change the server entry point, then make the following updates in the package.json file:

  • Development: Pass a HYDROGEN_SERVER_ENTRY environment variable to the development command.
  • Production: Use a --ssr flag when building your app.