mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 04:48:53 +00:00
feat: init renderer server (#8088)
This commit is contained in:
@@ -31,7 +31,7 @@ const getChannel = () => {
|
||||
|
||||
let entry: BuildFlags['entry'];
|
||||
|
||||
const { DISTRIBUTION } = process.env;
|
||||
const { DISTRIBUTION = 'web' } = process.env;
|
||||
|
||||
const cwd = getCwdFromDistribution(DISTRIBUTION);
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ import { createWebpackConfig } from '../webpack/webpack.config.js';
|
||||
|
||||
const flags: BuildFlags = {
|
||||
distribution:
|
||||
(process.env.DISTRIBUTION as BuildFlags['distribution']) ?? 'browser',
|
||||
(process.env.DISTRIBUTION as BuildFlags['distribution']) ?? 'web',
|
||||
mode: 'development',
|
||||
static: false,
|
||||
channel: 'canary',
|
||||
@@ -42,7 +42,7 @@ const buildFlags = process.argv.includes('--static')
|
||||
message: 'Distribution',
|
||||
options: [
|
||||
{
|
||||
value: 'browser',
|
||||
value: 'web',
|
||||
},
|
||||
{
|
||||
value: 'desktop',
|
||||
@@ -54,7 +54,7 @@ const buildFlags = process.argv.includes('--static')
|
||||
value: 'mobile',
|
||||
},
|
||||
],
|
||||
initialValue: 'browser',
|
||||
initialValue: 'web',
|
||||
}),
|
||||
mode: () =>
|
||||
p.select({
|
||||
|
||||
Reference in New Issue
Block a user