Skip to content

Commit 73074fb

Browse files
committed
fix netlify on static
1 parent 2532268 commit 73074fb

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

packages/app/src/app/store/modules/deployment/actions.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,14 @@ export async function deployToNetlify({ http, props, state }) {
5555
const sandbox = state.get(`editor.sandboxes.${sandboxId}`);
5656
const template = getTemplate(sandbox.template);
5757
const buildCommand = name => {
58-
if (name === 'styleguidist') return 'styleguide:build';
59-
if (name === 'nuxt') return 'generate';
60-
61-
return 'build';
58+
switch (name) {
59+
case 'styleguidist':
60+
return 'styleguide:build';
61+
case 'nuxt':
62+
return 'generate';
63+
default:
64+
return 'build';
65+
}
6266
};
6367

6468
const buildConfig = getNetlifyConfig(sandbox);

packages/common/src/templates/static.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export default new Template(
99
decorateSelector(() => '#3AA855'),
1010
{
1111
showOnHomePage: true,
12+
distDir: './',
1213
main: false,
1314
mainFile: ['/index.html'],
1415
}

0 commit comments

Comments
 (0)