Skip to content

Commit

Permalink
default to https mode
Browse files Browse the repository at this point in the history
  • Loading branch information
zjwhitehead committed Feb 27, 2024
1 parent f4562f4 commit 9d19341
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,10 @@ npm install

#### 2. Start local development server

```bash
npm run start
```

To interact with WebUSB devices you must use https. Hugo now provides https server out of the box. You can access the site at https://localhost:1313.
Run the following command to start the server in HTTPS mode:

```bash
hugo server --tlsAuto
npm run start
```

#### 3. (Not required) Build files
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"init": "shx rm -rf .git && git init -b main",
"create": "exec-bin node_modules/.bin/hugo/hugo new",
"prestart": "npm run clean",
"start": "exec-bin node_modules/.bin/hugo/hugo server --bind=0.0.0.0 --disableFastRender",
"start": "exec-bin node_modules/.bin/hugo/hugo server --bind=0.0.0.0 --disableFastRender --tlsAuto",
"prebuild": "npm run clean",
"build": "exec-bin node_modules/.bin/hugo/hugo --gc --minify --cleanDestinationDir",
"build:preview": "npm run build -D -F",
Expand Down

0 comments on commit 9d19341

Please sign in to comment.