Skip to content

Commit

Permalink
Merge pull request #365 from marcoluzi/fix/readme-typos
Browse files Browse the repository at this point in the history
Fix typos in the HMR and Fast Refresh section of the 10up-toolkit readme
  • Loading branch information
nicholasio committed Jan 17, 2024
2 parents 5846b93 + 98a28bf commit abc5afb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/toolkit/README.md
Expand Up @@ -290,15 +290,15 @@ In some setups (such as Laravel Valet), Websocket SSL connections will fail unle

If you aren't already customizing webpack in your project, create a new `webpack.config.js` file in the root of your project/theme. You need to specify the cert, key, and ca properties for the config.devServer.https object.

```
```js
const config = require('10up-toolkit/config/webpack.config.js');
const fs = require('fs')
const fs = require('fs');

// Customize this to the appropriate path to your certificate folder
const certPath = '/Users/youruser/.config/valet'
const certPath = '/Users/youruser/.config/valet';

// Check if devServer is in use and if so, modify the cert files used
if( typeof config.devServer === 'object ) {
if( typeof config.devServer === 'object' ) {
config.devServer.https = {
key: fs.readFileSync(`${certPath}/Certificates/yoursite.test.key`),
cert: fs.readFileSync(`${certPath}/Certificates/yoursite.test.crt`),
Expand Down

0 comments on commit abc5afb

Please sign in to comment.