feat: first commit

This commit is contained in:
Narongpol Kijrangsan 2025-02-22 21:18:41 +07:00
commit 8b0c05008e
Signed by: nkdev
GPG key ID: 6E4892640C1DB7C5
79 changed files with 30897 additions and 0 deletions

20
gatsby-node.js Normal file
View file

@ -0,0 +1,20 @@
exports.onCreateWebpackConfig = ({
actions: { replaceWebpackConfig },
getConfig
}) => {
const config = getConfig();
config.module.rules.push({
test: /\.worker\.js$/,
use: {
loader: "worker-loader",
options: {
inline: true
}
}
});
config.output.globalObject = "this";
replaceWebpackConfig(config);
};