Skip to content

Instantly share code, notes, and snippets.

View amir2mi's full-sized avatar
:octocat:
=๐Ÿ™ + ๐Ÿฑ

Amir M. Mohamadi amir2mi

:octocat:
=๐Ÿ™ + ๐Ÿฑ
View GitHub Profile
@amir2mi
amir2mi / gist:72d65e2aa905d3202ba6aba87acb93f8
Created May 14, 2025 20:03
Make Rocketchat Pizza Channel Epic!
.rc-message-box:has([placeholder="Message #pizza"]){
position: fixed;
top: 50px;
right: 50px;
width: 50vw;
opacity: 0.9;
backdrop-filter: blur(20px);
pointer-events: none;
caret-color: transparent;
padding: 10px !important;
@amir2mi
amir2mi / next.config.js
Last active May 23, 2024 05:43
Setup module federation for Next.js using @module-federation/nextjs-mf
const nextJsConfig = {
webpack(config, options) {
if (!options?.isServer) {
config.plugins.push(
new NextFederationPlugin({
name: "service-name",
filename: "static/chunks/remoteEntry.js",
exposes: {
"./pages/index": "./pages/index.jsx",
},