Use custom domain

1. Add domain to the /etc/hosts file

In order for this config to work you need to add your host domain to the /etc/hosts file, for example:
1
# /etc/hosts file
2
127.0.0.1 localhost
3
127.0.0.1 scandipwa.local # some other domain
Copied!

2. Setup CMA

Add to your cma.js file field host with your domain:
1
module.export = {
2
... other configuration
3
host: 'scandipwa.local'
4
}
Copied!
That is it! Just now we have setup a domain in our application! Now to apply changes we need to run the start command without -s option.
Last modified 9mo ago