Skip to content

Commit

Permalink
fix(module): fix internalUrl with protocol and host
Browse files Browse the repository at this point in the history
  • Loading branch information
ThornWalli committed Nov 1, 2021
1 parent a48d6b1 commit d9e0ceb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/module.js
Expand Up @@ -62,7 +62,7 @@ async function addBuildTemplates (scope, options) {
// const internalUrl;
scope.nuxt.hook('listen', (_, listener) => {
// eslint-disable-next-line no-secrets/no-secrets
process.env.NUXT_SPEEDKIT_INTERAL_URL = `http://localhost:${listener.port}`;
process.env.NUXT_SPEEDKIT_INTERAL_URL = `${listener.https ? 'https' : 'http'}://${listener.host}:${listener.port}`;
});

scope.addPlugin({
Expand Down

0 comments on commit d9e0ceb

Please sign in to comment.