Skip to content

Commit d1b4fc5

Browse files
author
Ives van Hoorne
committed
Set publicPath to / for sandpack
1 parent 247273a commit d1b4fc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/app/config/webpack.common.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const __PROD__ = NODE_ENV === 'production'; // eslint-disable-line no-underscore
2020
// const __TEST__ = NODE_ENV === 'test'; // eslint-disable-line no-underscore-dangle
2121
const babelConfig = __DEV__ ? babelDev : babelProd;
2222

23-
const publicPath = getHost() + '/';
23+
const publicPath = SANDBOX_ONLY ? '/' : getHost() + '/';
2424

2525
// Shim for `eslint-plugin-vue/lib/index.js`
2626
const ESLINT_PLUGIN_VUE_INDEX = `module.exports = {

0 commit comments

Comments
 (0)