MCPcopy Create free account
hub / github.com/CommE2E/comm / createNodeServerRenderingConfig

Function createNodeServerRenderingConfig

lib/webpack/shared.cjs:244–279  ·  view source on GitHub ↗
(baseConfig, babelConfig)

Source from the content-addressed store, hash-verified

242}
243
244async function createNodeServerRenderingConfig(baseConfig, babelConfig) {
245 const { alchemyKey, walletConnectKey, neynarKey } = await getConfigs();
246 return {
247 ...baseConfig,
248 name: 'server',
249 target: 'node',
250 module: {
251 rules: [
252 getBabelRule(babelConfig),
253 {
254 test: /\.css$/,
255 use: {
256 ...cssLoader,
257 options: {
258 ...cssLoader.options,
259 modules: {
260 ...cssLoader.options.modules,
261 exportOnlyLocals: true,
262 },
263 },
264 },
265 },
266 ],
267 },
268 plugins: [
269 ...sharedPlugins,
270 new webpack.DefinePlugin({
271 'process.env': {
272 COMM_ALCHEMY_KEY: JSON.stringify(alchemyKey),
273 COMM_WALLETCONNECT_KEY: JSON.stringify(walletConnectKey),
274 COMM_NEYNAR_KEY: JSON.stringify(neynarKey),
275 },
276 }),
277 ],
278 };
279}
280
281function createWebWorkersConfig(env, baseConfig, babelConfig) {
282 return {

Callers 2

webpack.config.cjsFile · 0.85
webpack.config.cjsFile · 0.85

Calls 2

getConfigsFunction · 0.85
getBabelRuleFunction · 0.85

Tested by

no test coverage detected