Skip to content
This repository was archived by the owner on Nov 6, 2023. It is now read-only.

Commit 5b2589c

Browse files
authored
Merge pull request #74 from TobbenTM/proxy-hmr-websockets
Force client side HMR inference for out-of-the-box HTTPS support
2 parents 63a601e + 4d1ec65 commit 5b2589c

File tree

6 files changed

+2987
-1372
lines changed

6 files changed

+2987
-1372
lines changed

README.md

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -160,36 +160,6 @@ You may also need to add the following tasks to your csproj file. This are simil
160160

161161
```
162162

163-
## Setting up for HTTPS
164-
165-
For consistent schemas & for hot reload to not break while using https you will need to setup
166-
your vue app, before enabling the `https` flag.
167-
168-
1. Get the `mkcert` tool following the installation instructions on their [github](https://github.com/FiloSottile/mkcert) repository or their [releases](https://github.com/FiloSottile/mkcert/releases)
169-
2. Install root CA `mkcert -install`
170-
3. Generate the certificates `mkcert localhost 127.0.0.1 <local ipv4> ::1`
171-
4. Add certificates to `vue.config.js`
172-
```
173-
const fs = require('fs')
174-
175-
module.exports = {
176-
devServer: {
177-
https: {
178-
key: fs.readFileSync('./certs/localhost+3-key.pem'),
179-
cert: fs.readFileSync('./certs/localhost+3.pem'),
180-
}
181-
}
182-
}
183-
```
184-
5. you can now set the https option to true.
185-
```
186-
endpoints.MapToVueCliProxy(
187-
...
188-
https: true
189-
...
190-
);
191-
```
192-
193163
## History
194164

195165
Due to the discussion [here](https://github.com/aspnet/JavaScriptServices/pull/1726), it was decided to not be included in the Microsoft owned package.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
22
presets: [
3-
'@vue/app'
3+
'@vue/cli-plugin-babel/preset'
44
]
55
}

0 commit comments

Comments
 (0)