2023-07-18 19:53:10 +03:00
|
|
|
import { join, resolve } from 'node:path';
|
|
|
|
import { fileURLToPath } from 'node:url';
|
|
|
|
import { createRequire } from 'node:module';
|
2023-08-29 13:07:05 +03:00
|
|
|
|
2023-07-18 19:53:10 +03:00
|
|
|
import type { Configuration as DevServerConfiguration } from 'webpack-dev-server';
|
|
|
|
import { PerfseePlugin } from '@perfsee/webpack';
|
|
|
|
import { sentryWebpackPlugin } from '@sentry/webpack-plugin';
|
|
|
|
|
|
|
|
import CopyPlugin from 'copy-webpack-plugin';
|
|
|
|
import ReactRefreshWebpackPlugin from '@pmmmwh/react-refresh-webpack-plugin';
|
|
|
|
import TerserPlugin from 'terser-webpack-plugin';
|
|
|
|
import webpack from 'webpack';
|
|
|
|
import MiniCssExtractPlugin from 'mini-css-extract-plugin';
|
2023-08-29 13:07:05 +03:00
|
|
|
import { compact } from 'lodash-es';
|
2023-07-18 19:53:10 +03:00
|
|
|
|
|
|
|
import { productionCacheGroups } from './cache-group.js';
|
|
|
|
import type { BuildFlags } from '@affine/cli/config';
|
|
|
|
import { projectRoot } from '@affine/cli/config';
|
|
|
|
import { VanillaExtractPlugin } from '@vanilla-extract/webpack-plugin';
|
|
|
|
import type { RuntimeConfig } from '@affine/env/global';
|
2024-01-18 06:50:24 +03:00
|
|
|
import { WebpackS3Plugin } from './s3-plugin.js';
|
2023-07-18 19:53:10 +03:00
|
|
|
|
|
|
|
const IN_CI = !!process.env.CI;
|
|
|
|
|
2023-11-20 05:52:28 +03:00
|
|
|
export const rootPath = join(fileURLToPath(import.meta.url), '..', '..');
|
2023-10-18 18:30:08 +03:00
|
|
|
const workspaceRoot = join(rootPath, '..', '..', '..');
|
2023-07-18 19:53:10 +03:00
|
|
|
|
|
|
|
const require = createRequire(rootPath);
|
|
|
|
|
|
|
|
const OptimizeOptionOptions: (
|
|
|
|
buildFlags: BuildFlags
|
|
|
|
) => webpack.Configuration['optimization'] = buildFlags => ({
|
|
|
|
minimize: buildFlags.mode === 'production',
|
|
|
|
minimizer: [
|
|
|
|
new TerserPlugin({
|
|
|
|
minify: TerserPlugin.swcMinify,
|
2023-07-30 21:10:45 +03:00
|
|
|
exclude: [/plugins\/.+\/.+\.js$/, /plugins\/.+\/.+\.mjs$/],
|
2023-07-18 19:53:10 +03:00
|
|
|
parallel: true,
|
|
|
|
extractComments: true,
|
|
|
|
terserOptions: {
|
|
|
|
ecma: 2020,
|
|
|
|
compress: {
|
|
|
|
unused: true,
|
|
|
|
},
|
|
|
|
mangle: true,
|
|
|
|
},
|
|
|
|
}),
|
|
|
|
],
|
|
|
|
removeEmptyChunks: true,
|
|
|
|
providedExports: true,
|
|
|
|
usedExports: true,
|
|
|
|
sideEffects: true,
|
|
|
|
removeAvailableModules: true,
|
|
|
|
runtimeChunk: {
|
|
|
|
name: 'runtime',
|
|
|
|
},
|
|
|
|
splitChunks: {
|
|
|
|
chunks: 'all',
|
|
|
|
minSize: 1,
|
|
|
|
minChunks: 1,
|
|
|
|
maxInitialRequests: Number.MAX_SAFE_INTEGER,
|
|
|
|
maxAsyncRequests: Number.MAX_SAFE_INTEGER,
|
|
|
|
cacheGroups:
|
|
|
|
buildFlags.mode === 'production'
|
|
|
|
? productionCacheGroups
|
|
|
|
: {
|
|
|
|
default: false,
|
|
|
|
vendors: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
});
|
|
|
|
|
2023-08-29 19:51:57 +03:00
|
|
|
export const getPublicPath = (buildFlags: BuildFlags) => {
|
2023-08-29 13:07:05 +03:00
|
|
|
const { BUILD_TYPE } = process.env;
|
2024-01-10 11:35:21 +03:00
|
|
|
if (typeof process.env.PUBLIC_PATH === 'string') {
|
|
|
|
return process.env.PUBLIC_PATH;
|
|
|
|
}
|
|
|
|
const publicPath = '/';
|
2023-08-29 19:51:57 +03:00
|
|
|
if (process.env.COVERAGE || buildFlags.distribution === 'desktop') {
|
2023-08-29 13:07:05 +03:00
|
|
|
return publicPath;
|
|
|
|
}
|
2023-08-29 19:51:57 +03:00
|
|
|
|
2023-08-29 13:07:05 +03:00
|
|
|
if (BUILD_TYPE === 'canary') {
|
2024-01-18 06:50:24 +03:00
|
|
|
return `https://dev.affineassets.com/`;
|
2023-08-29 13:07:05 +03:00
|
|
|
} else if (BUILD_TYPE === 'beta' || BUILD_TYPE === 'stable') {
|
2024-01-18 06:50:24 +03:00
|
|
|
return `https://prod.affineassets.com/`;
|
2023-08-29 13:07:05 +03:00
|
|
|
}
|
|
|
|
return publicPath;
|
2023-08-29 19:51:57 +03:00
|
|
|
};
|
2023-08-29 13:07:05 +03:00
|
|
|
|
2023-07-18 19:53:10 +03:00
|
|
|
export const createConfiguration: (
|
|
|
|
buildFlags: BuildFlags,
|
|
|
|
runtimeConfig: RuntimeConfig
|
|
|
|
) => webpack.Configuration = (buildFlags, runtimeConfig) => {
|
2023-08-07 20:44:31 +03:00
|
|
|
const blocksuiteBaseDir = buildFlags.localBlockSuite;
|
|
|
|
|
2023-07-18 19:53:10 +03:00
|
|
|
const config = {
|
|
|
|
name: 'affine',
|
|
|
|
// to set a correct base path for the source map
|
|
|
|
context: projectRoot,
|
2023-08-04 02:05:46 +03:00
|
|
|
experiments: {
|
|
|
|
topLevelAwait: true,
|
|
|
|
outputModule: false,
|
2023-08-11 20:14:09 +03:00
|
|
|
syncWebAssembly: true,
|
2023-08-04 02:05:46 +03:00
|
|
|
},
|
2023-07-18 19:53:10 +03:00
|
|
|
output: {
|
|
|
|
environment: {
|
|
|
|
module: true,
|
|
|
|
dynamicImport: true,
|
|
|
|
},
|
2023-07-19 10:19:27 +03:00
|
|
|
filename:
|
|
|
|
buildFlags.mode === 'production'
|
|
|
|
? 'js/[name]-[contenthash:8].js'
|
|
|
|
: 'js/[name].js',
|
2023-07-18 19:53:10 +03:00
|
|
|
// In some cases webpack will emit files starts with "_" which is reserved in web extension.
|
2023-08-29 13:07:05 +03:00
|
|
|
chunkFilename:
|
|
|
|
buildFlags.mode === 'production'
|
|
|
|
? 'js/chunk.[name]-[contenthash:8].js'
|
|
|
|
: 'js/chunk.[name].js',
|
2023-11-17 11:50:48 +03:00
|
|
|
assetModuleFilename:
|
|
|
|
buildFlags.mode === 'production'
|
|
|
|
? 'assets/[name]-[contenthash:8][ext][query]'
|
|
|
|
: '[name][ext]',
|
2023-07-18 19:53:10 +03:00
|
|
|
devtoolModuleFilenameTemplate: 'webpack://[namespace]/[resource-path]',
|
|
|
|
hotUpdateChunkFilename: 'hot/[id].[fullhash].js',
|
|
|
|
hotUpdateMainFilename: 'hot/[runtime].[fullhash].json',
|
|
|
|
path: join(rootPath, 'dist'),
|
|
|
|
clean: buildFlags.mode === 'production',
|
|
|
|
globalObject: 'globalThis',
|
2023-08-29 19:51:57 +03:00
|
|
|
publicPath: getPublicPath(buildFlags),
|
2023-07-18 19:53:10 +03:00
|
|
|
},
|
|
|
|
target: ['web', 'es2022'],
|
|
|
|
|
|
|
|
mode: buildFlags.mode,
|
|
|
|
|
|
|
|
devtool:
|
|
|
|
buildFlags.mode === 'production'
|
2023-09-01 06:34:18 +03:00
|
|
|
? 'source-map'
|
2023-07-18 19:53:10 +03:00
|
|
|
: 'eval-cheap-module-source-map',
|
|
|
|
|
|
|
|
resolve: {
|
2023-07-27 08:36:29 +03:00
|
|
|
symlinks: true,
|
2023-07-18 19:53:10 +03:00
|
|
|
extensionAlias: {
|
|
|
|
'.js': ['.js', '.tsx', '.ts'],
|
|
|
|
'.mjs': ['.mjs', '.mts'],
|
|
|
|
},
|
|
|
|
extensions: ['.js', '.ts', '.tsx'],
|
2023-08-07 20:44:31 +03:00
|
|
|
fallback:
|
|
|
|
blocksuiteBaseDir === undefined
|
|
|
|
? undefined
|
|
|
|
: {
|
|
|
|
events: false,
|
|
|
|
},
|
2023-10-10 20:51:47 +03:00
|
|
|
alias: {
|
|
|
|
yjs: require.resolve('yjs'),
|
|
|
|
'@blocksuite/block-std': blocksuiteBaseDir
|
2024-02-01 09:49:16 +03:00
|
|
|
? join(blocksuiteBaseDir, 'packages', 'framework', 'block-std', 'src')
|
2023-10-10 20:51:47 +03:00
|
|
|
: join(
|
|
|
|
workspaceRoot,
|
|
|
|
'node_modules',
|
|
|
|
'@blocksuite',
|
|
|
|
'block-std',
|
|
|
|
'dist'
|
|
|
|
),
|
|
|
|
'@blocksuite/blocks': blocksuiteBaseDir
|
|
|
|
? join(blocksuiteBaseDir, 'packages', 'blocks', 'src')
|
|
|
|
: join(
|
|
|
|
workspaceRoot,
|
|
|
|
'node_modules',
|
|
|
|
'@blocksuite',
|
|
|
|
'blocks',
|
|
|
|
'dist'
|
|
|
|
),
|
2023-12-06 13:15:03 +03:00
|
|
|
'@blocksuite/presets': blocksuiteBaseDir
|
|
|
|
? join(blocksuiteBaseDir, 'packages', 'presets', 'src')
|
2023-10-10 20:51:47 +03:00
|
|
|
: join(
|
|
|
|
workspaceRoot,
|
|
|
|
'node_modules',
|
|
|
|
'@blocksuite',
|
2023-12-06 13:15:03 +03:00
|
|
|
'presets',
|
2023-10-10 20:51:47 +03:00
|
|
|
'dist'
|
|
|
|
),
|
|
|
|
'@blocksuite/global': blocksuiteBaseDir
|
2024-02-01 09:49:16 +03:00
|
|
|
? join(blocksuiteBaseDir, 'packages', 'framework', 'global', 'src')
|
2023-10-10 20:51:47 +03:00
|
|
|
: join(
|
|
|
|
workspaceRoot,
|
|
|
|
'node_modules',
|
|
|
|
'@blocksuite',
|
|
|
|
'global',
|
|
|
|
'dist'
|
|
|
|
),
|
|
|
|
'@blocksuite/store/providers/broadcast-channel': blocksuiteBaseDir
|
|
|
|
? join(
|
|
|
|
blocksuiteBaseDir,
|
|
|
|
'packages',
|
2024-02-01 09:49:16 +03:00
|
|
|
'framework',
|
2023-10-10 20:51:47 +03:00
|
|
|
'store',
|
|
|
|
'src/providers/broadcast-channel'
|
|
|
|
)
|
|
|
|
: join(
|
|
|
|
workspaceRoot,
|
|
|
|
'node_modules',
|
|
|
|
'@blocksuite',
|
|
|
|
'store',
|
|
|
|
'dist',
|
|
|
|
'providers',
|
|
|
|
'broadcast-channel.js'
|
|
|
|
),
|
|
|
|
'@blocksuite/store': blocksuiteBaseDir
|
2024-02-01 09:49:16 +03:00
|
|
|
? join(blocksuiteBaseDir, 'packages', 'framework', 'store', 'src')
|
2023-10-10 20:51:47 +03:00
|
|
|
: join(workspaceRoot, 'node_modules', '@blocksuite', 'store', 'dist'),
|
2023-12-15 07:57:52 +03:00
|
|
|
'@blocksuite/inline': blocksuiteBaseDir
|
2024-02-01 09:49:16 +03:00
|
|
|
? join(blocksuiteBaseDir, 'packages', 'framework', 'inline', 'src')
|
2023-12-15 07:57:52 +03:00
|
|
|
: join(
|
|
|
|
workspaceRoot,
|
|
|
|
'node_modules',
|
|
|
|
'@blocksuite',
|
|
|
|
'inline',
|
|
|
|
'dist'
|
|
|
|
),
|
2024-02-01 09:49:16 +03:00
|
|
|
'@blocksuite/lit': blocksuiteBaseDir
|
|
|
|
? join(blocksuiteBaseDir, 'packages', 'framework', 'lit', 'src')
|
|
|
|
: join(workspaceRoot, 'node_modules', '@blocksuite', 'lit', 'dist'),
|
2023-10-10 20:51:47 +03:00
|
|
|
},
|
2023-07-18 19:53:10 +03:00
|
|
|
},
|
|
|
|
|
|
|
|
module: {
|
|
|
|
parser: {
|
|
|
|
javascript: {
|
2023-08-04 02:05:46 +03:00
|
|
|
// Do not mock Node.js globals
|
|
|
|
node: false,
|
|
|
|
requireJs: false,
|
|
|
|
import: true,
|
2023-07-18 19:53:10 +03:00
|
|
|
// Treat as missing export as error
|
|
|
|
strictExportPresence: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
rules: [
|
|
|
|
{
|
|
|
|
test: /\.m?js?$/,
|
|
|
|
resolve: {
|
|
|
|
fullySpecified: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
oneOf: [
|
|
|
|
{
|
|
|
|
test: /\.tsx?$/,
|
2023-08-07 20:44:31 +03:00
|
|
|
exclude: /node_modules/,
|
2023-07-18 19:53:10 +03:00
|
|
|
loader: require.resolve('swc-loader'),
|
|
|
|
options: {
|
|
|
|
// https://swc.rs/docs/configuring-swc/
|
|
|
|
jsc: {
|
|
|
|
preserveAllComments: true,
|
|
|
|
parser: {
|
|
|
|
syntax: 'typescript',
|
|
|
|
dynamicImport: true,
|
|
|
|
topLevelAwait: false,
|
|
|
|
tsx: true,
|
2023-08-07 20:44:31 +03:00
|
|
|
decorators: true,
|
2023-07-18 19:53:10 +03:00
|
|
|
},
|
|
|
|
target: 'es2022',
|
2023-08-07 20:44:31 +03:00
|
|
|
externalHelpers: false,
|
2023-07-18 19:53:10 +03:00
|
|
|
transform: {
|
|
|
|
react: {
|
|
|
|
runtime: 'automatic',
|
|
|
|
refresh: buildFlags.mode === 'development' && {
|
|
|
|
refreshReg: '$RefreshReg$',
|
|
|
|
refreshSig: '$RefreshSig$',
|
|
|
|
emitFullSignatures: true,
|
|
|
|
},
|
|
|
|
},
|
2023-08-07 20:44:31 +03:00
|
|
|
useDefineForClassFields: false,
|
2023-07-18 19:53:10 +03:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
2023-09-22 08:56:43 +03:00
|
|
|
test: /\.(png|jpg|gif|svg|webp|mp4)$/,
|
2023-07-18 19:53:10 +03:00
|
|
|
type: 'asset/resource',
|
|
|
|
},
|
|
|
|
{
|
2023-07-20 19:04:26 +03:00
|
|
|
test: /\.(ttf|eot|woff|woff2)$/,
|
2023-07-18 19:53:10 +03:00
|
|
|
type: 'asset/resource',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /\.txt$/,
|
|
|
|
loader: 'raw-loader',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /\.css$/,
|
|
|
|
use: [
|
2023-07-19 18:52:21 +03:00
|
|
|
buildFlags.mode === 'development'
|
|
|
|
? 'style-loader'
|
|
|
|
: MiniCssExtractPlugin.loader,
|
2023-07-18 19:53:10 +03:00
|
|
|
{
|
|
|
|
loader: 'css-loader',
|
|
|
|
options: {
|
2023-08-29 13:07:05 +03:00
|
|
|
url: true,
|
2023-07-18 19:53:10 +03:00
|
|
|
sourceMap: false,
|
|
|
|
modules: false,
|
|
|
|
import: true,
|
|
|
|
importLoaders: 1,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
loader: 'postcss-loader',
|
|
|
|
options: {
|
|
|
|
postcssOptions: {
|
|
|
|
config: resolve(
|
|
|
|
rootPath,
|
|
|
|
'.webpack',
|
|
|
|
'postcss.config.cjs'
|
|
|
|
),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2023-08-29 13:07:05 +03:00
|
|
|
plugins: compact([
|
|
|
|
IN_CI ? null : new webpack.ProgressPlugin({ percentBy: 'entries' }),
|
|
|
|
buildFlags.mode === 'development'
|
|
|
|
? new ReactRefreshWebpackPlugin({ overlay: false, esModule: true })
|
|
|
|
: new MiniCssExtractPlugin({
|
|
|
|
filename: `[name].[contenthash:8].css`,
|
|
|
|
ignoreOrder: true,
|
|
|
|
}),
|
2023-07-18 19:53:10 +03:00
|
|
|
new VanillaExtractPlugin(),
|
|
|
|
new webpack.DefinePlugin({
|
|
|
|
'process.env': JSON.stringify({}),
|
2023-07-20 19:04:26 +03:00
|
|
|
'process.env.COVERAGE': JSON.stringify(!!buildFlags.coverage),
|
2023-07-20 05:44:50 +03:00
|
|
|
'process.env.NODE_ENV': JSON.stringify(buildFlags.mode),
|
2023-09-11 12:47:02 +03:00
|
|
|
'process.env.SHOULD_REPORT_TRACE': JSON.stringify(
|
|
|
|
Boolean(process.env.SHOULD_REPORT_TRACE === 'true')
|
|
|
|
),
|
|
|
|
'process.env.TRACE_REPORT_ENDPOINT': JSON.stringify(
|
|
|
|
process.env.TRACE_REPORT_ENDPOINT
|
|
|
|
),
|
2023-10-18 11:06:07 +03:00
|
|
|
'process.env.CAPTCHA_SITE_KEY': JSON.stringify(
|
|
|
|
process.env.CAPTCHA_SITE_KEY
|
|
|
|
),
|
2023-12-01 10:25:08 +03:00
|
|
|
'process.env.SENTRY_DSN': JSON.stringify(process.env.SENTRY_DSN),
|
|
|
|
'process.env.BUILD_TYPE': JSON.stringify(process.env.BUILD_TYPE),
|
2023-07-18 19:53:10 +03:00
|
|
|
runtimeConfig: JSON.stringify(runtimeConfig),
|
|
|
|
}),
|
|
|
|
new CopyPlugin({
|
|
|
|
patterns: [
|
2023-07-29 22:07:32 +03:00
|
|
|
{
|
|
|
|
from: resolve(rootPath, 'public'),
|
|
|
|
to: resolve(rootPath, 'dist'),
|
|
|
|
},
|
2023-07-18 19:53:10 +03:00
|
|
|
],
|
|
|
|
}),
|
2023-08-29 13:07:05 +03:00
|
|
|
buildFlags.mode === 'production' && process.env.R2_SECRET_ACCESS_KEY
|
|
|
|
? new WebpackS3Plugin()
|
|
|
|
: null,
|
|
|
|
]),
|
2023-07-18 19:53:10 +03:00
|
|
|
|
|
|
|
optimization: OptimizeOptionOptions(buildFlags),
|
|
|
|
|
|
|
|
devServer: {
|
|
|
|
hot: 'only',
|
2023-07-20 13:52:29 +03:00
|
|
|
liveReload: true,
|
2023-11-06 05:42:21 +03:00
|
|
|
client: {
|
|
|
|
overlay: process.env.DISABLE_DEV_OVERLAY === 'true' ? false : undefined,
|
|
|
|
},
|
2023-07-18 19:53:10 +03:00
|
|
|
historyApiFallback: true,
|
|
|
|
static: {
|
|
|
|
directory: resolve(rootPath, 'public'),
|
|
|
|
publicPath: '/',
|
2023-07-20 13:52:29 +03:00
|
|
|
watch: true,
|
2023-07-18 19:53:10 +03:00
|
|
|
},
|
2024-02-20 07:39:28 +03:00
|
|
|
proxy: [
|
|
|
|
{
|
|
|
|
context: '/api/worker/',
|
2024-01-05 17:01:25 +03:00
|
|
|
target: 'https://affine.fail',
|
2023-12-19 16:54:41 +03:00
|
|
|
changeOrigin: true,
|
|
|
|
secure: false,
|
|
|
|
},
|
2024-02-20 07:39:28 +03:00
|
|
|
{ context: '/api', target: 'http://localhost:3010' },
|
|
|
|
{ context: '/socket.io', target: 'http://localhost:3010', ws: true },
|
|
|
|
{ context: '/graphql', target: 'http://localhost:3010' },
|
|
|
|
],
|
2023-07-18 19:53:10 +03:00
|
|
|
} as DevServerConfiguration,
|
|
|
|
} satisfies webpack.Configuration;
|
|
|
|
|
|
|
|
if (buildFlags.mode === 'production' && process.env.PERFSEE_TOKEN) {
|
|
|
|
config.devtool = 'hidden-nosources-source-map';
|
|
|
|
config.plugins.push(
|
|
|
|
new PerfseePlugin({
|
|
|
|
project: 'affine-toeverything',
|
|
|
|
})
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2023-07-19 18:52:21 +03:00
|
|
|
if (buildFlags.mode === 'development') {
|
|
|
|
config.optimization = {
|
|
|
|
...config.optimization,
|
|
|
|
minimize: false,
|
|
|
|
runtimeChunk: false,
|
|
|
|
splitChunks: {
|
|
|
|
maxInitialRequests: Infinity,
|
|
|
|
chunks: 'all',
|
|
|
|
cacheGroups: {
|
|
|
|
defaultVendors: {
|
|
|
|
test: `[\\/]node_modules[\\/](?!.*vanilla-extract)`,
|
|
|
|
priority: -10,
|
|
|
|
reuseExistingChunk: true,
|
|
|
|
},
|
|
|
|
default: {
|
|
|
|
minChunks: 2,
|
|
|
|
priority: -20,
|
|
|
|
reuseExistingChunk: true,
|
|
|
|
},
|
|
|
|
styles: {
|
|
|
|
name: 'styles',
|
|
|
|
type: 'css/mini-extract',
|
|
|
|
chunks: 'all',
|
|
|
|
enforce: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2023-07-18 19:53:10 +03:00
|
|
|
if (
|
|
|
|
process.env.SENTRY_AUTH_TOKEN &&
|
|
|
|
process.env.SENTRY_ORG &&
|
|
|
|
process.env.SENTRY_PROJECT
|
|
|
|
) {
|
|
|
|
config.plugins.push(
|
|
|
|
sentryWebpackPlugin({
|
|
|
|
org: process.env.SENTRY_ORG,
|
|
|
|
project: process.env.SENTRY_PROJECT,
|
|
|
|
authToken: process.env.SENTRY_AUTH_TOKEN,
|
|
|
|
})
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
return config;
|
|
|
|
};
|