mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-15 00:56:26 +08:00
feat: init renderer server (#8088)
This commit is contained in:
@@ -15,7 +15,7 @@ module.exports.getCwdFromDistribution = function getCwdFromDistribution(
|
||||
distribution
|
||||
) {
|
||||
switch (distribution) {
|
||||
case 'browser':
|
||||
case 'web':
|
||||
case undefined:
|
||||
case null:
|
||||
return join(projectRoot, 'packages/frontend/web');
|
||||
@@ -26,7 +26,9 @@ module.exports.getCwdFromDistribution = function getCwdFromDistribution(
|
||||
case 'mobile':
|
||||
return join(projectRoot, 'packages/frontend/mobile');
|
||||
default: {
|
||||
throw new Error('DISTRIBUTION must be one of browser, desktop');
|
||||
throw new Error(
|
||||
'DISTRIBUTION must be one of web, desktop, admin, mobile'
|
||||
);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
export type BuildFlags = {
|
||||
distribution: 'browser' | 'desktop' | 'admin' | 'mobile';
|
||||
distribution: 'web' | 'desktop' | 'admin' | 'mobile';
|
||||
mode: 'development' | 'production';
|
||||
channel: 'stable' | 'beta' | 'canary' | 'internal';
|
||||
static: boolean;
|
||||
|
||||
Reference in New Issue
Block a user