(baseConfig, babelConfig)
| 242 | } |
| 243 | |
| 244 | async 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 | |
| 281 | function createWebWorkersConfig(env, baseConfig, babelConfig) { |
| 282 | return { |
no test coverage detected