Skip to content

Commit

Permalink
Fix typos in the HMR and Fast Refresh section of the 10up-toolkit readme
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoluzi committed Jan 16, 2024
1 parent 5846b93 commit 98a28bf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/toolkit/README.md
Original file line number Diff line number Diff line change
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 98a28bf

Please sign in to comment.