Skip to main content
Build a basic prototype

Change the service name

The service name is displayed in the header of every page. We don’t want to have to edit every page if you decide to rename the service.

Instead, it is set in a config file so that you can set it in one place and then every page will update automatically.

To set your service name:

  1. Open the config.js file in your app folder
  2. Change serviceName from "Service name goes here" to "Order a test to check if you have magical powers"
  3. Press Command + S on Mac or Ctrl + S on Windows to save your change

You must save every time you make a change to a file. In most code editors, a dot indicator appears in the tab for any file that has unsaved changes.

Normally your changes will automatically show in the browser without refreshing. But for this config change, you need to refresh the page. You should see your service name change on the page.