Skip to content

Commit c11d43c

Browse files
author
Ives van Hoorne
committed
Fix dev insecure response
1 parent a468ff3 commit c11d43c

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

config/webpack.config.js

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@ const COMMIT_HASH = childProcess
2727
.toString();
2828
const VERSION = `${COMMIT_COUNT}-${COMMIT_HASH}`;
2929

30-
const publicPath = __PROD__
31-
? 'https://codesandbox.io/'
32-
: 'https://codesandbox.dev/';
30+
const publicPath = __PROD__ ? 'https://codesandbox.io/' : '/';
3331

3432
const getOutput = () =>
3533
__DEV__
@@ -442,6 +440,16 @@ if (__PROD__) {
442440
},
443441
},
444442
},
443+
{
444+
urlPattern: /webpack-dll-prod\.herokuapp\.com/,
445+
handler: 'fastest',
446+
options: {
447+
cache: {
448+
maxEntries: 100,
449+
name: 'packager-cache',
450+
},
451+
},
452+
},
445453
{
446454
urlPattern: /https:\/\/d3i2v4dxqvxaq9\.cloudfront\.net/,
447455
handler: 'fastest',

src/sandbox/utils/host.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ function getHost() {
44
}
55

66
return process.env.NODE_ENV === 'development'
7-
? 'https://codesandbox.dev'
7+
? '*'
88
: 'https://codesandbox.io';
99
}
1010

0 commit comments

Comments
 (0)