Skip to content

Commit 95ba0d3

Browse files
committed
Update default config for sapper
1 parent ddc2da4 commit 95ba0d3

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

packages/common/templates/sapper.js

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,33 @@
11
// @flow
2+
import configurations from './configuration';
3+
24
import Template from './template';
35
import { decorateSelector } from '../theme';
46

7+
const extendedSandboxConfig = {
8+
...configurations.sandboxConfig,
9+
getDefaultCode: () =>
10+
JSON.stringify(
11+
{
12+
container: {
13+
port: 3000,
14+
},
15+
},
16+
null,
17+
2
18+
),
19+
};
20+
521
export default new Template(
622
'sapper',
723
'Sapper',
824
'https://sapper.svelte.technology/',
9-
'sapper',
25+
'github/sveltejs/sapper-template',
1026
decorateSelector(() => '#105E10'),
1127
{
28+
extraConfigurations: {
29+
'/sandbox.config.json': extendedSandboxConfig,
30+
},
1231
isServer: true,
1332
mainFile: ['/src/routes/index.html'],
1433
showOnHomePage: false,

0 commit comments

Comments
 (0)