mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
bundling experiments (WIP)
Looking at ways to bundle custom widgets with Grist. WIP, experimental, everything will need rewrite.
This commit is contained in:
@@ -107,6 +107,11 @@ export async function main() {
|
||||
// Set directory for uploaded documents.
|
||||
setDefaultEnv('GRIST_DATA_DIR', 'docs');
|
||||
setDefaultEnv('GRIST_SERVERS', 'home,docs,static');
|
||||
if (process.env.GRIST_SERVERS?.includes('home')) {
|
||||
// By default, we will now start an untrusted port alongside a
|
||||
// home server. Suppress with GRIST_UNTRUSTED_PORT=''
|
||||
setDefaultEnv('GRIST_UNTRUSTED_PORT', '0');
|
||||
}
|
||||
const serverTypes = parseServerTypes(process.env.GRIST_SERVERS);
|
||||
|
||||
await fse.mkdirp(process.env.GRIST_DATA_DIR!);
|
||||
|
||||
Reference in New Issue
Block a user