Fix typos with the module.exports functions. (#7070)

The `module.exports` example code is missing a closing parenthesis at the end of each example. Added the closing parenthesis.
This commit is contained in:
Eli 2020-07-25 02:46:16 -04:00 committed by GitHub
parent 3d1cb2ca4d
commit 528dc4140e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,7 +22,7 @@ module.exports = ({ env }) => ({
admin: {
url: '/dashboard', // We change the path to access to the admin (highly recommended for security reasons).
},
};
});
```
**You have to rebuild the administration panel to make this work.** [Build instructions](./customization.md#build).
@ -42,7 +42,7 @@ module.exports = ({ env }) => ({
url: '/', // Note: The administration will be accessible from the root of the domain (ex: http://yourfrontend.com/)
serveAdminPanel: false, // http://yourbackend.com will not serve any static admin files
},
};
});
```
After running `yarn build` with this configuration, the folder `build` will be created/overwritten. You can then use this folder to serve it from another server with the domain of your choice (ex: `http://youfrontend.com`).