Skip to content

Commit

Permalink
feat(https): add https support for basePath
Browse files Browse the repository at this point in the history
  • Loading branch information
ruisaraiva19 committed Mar 12, 2021
1 parent 88ef70d commit 8db1edb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const twentyKb = 20 * 1024;
const defaultOptions = {
//# stable configurations
port: 45678,
https: false,
source: "build",
destination: null,
concurrency: 4,
Expand Down Expand Up @@ -690,7 +691,7 @@ const run = async (userOptions, { fs } = { fs: nativeFs }) => {

const server = options.externalServer ? null : startServer(options);

const basePath = `http://localhost:${options.port}`;
const basePath = `http${options.https ? 's': ''}://localhost:${options.port}`;
const publicPath = options.publicPath;
const ajaxCache = {};
const { http2PushManifest } = options;
Expand Down

0 comments on commit 8db1edb

Please sign in to comment.