fix: deterministic proto loading

This commit is contained in:
TrèsAbhi committed 2024-09-03 21:47:06 -05:00
1 parent cbb5392525
commit 169f757fb2
11 files changed
+53 -34

No files matched your search

+10 -4
View File
@@ -7,10 +7,16 @@ const withVanillaExtract = createVanillaExtractPlugin({ tests: /\.css$/ });
const nextConfig = {
...withVanillaExtract({
webpack: (config, { isServer }) => {
config.module.rules.push({
test: /\.glsl$/,
type: 'asset/source',
});
config.module.rules.push(
{
test: /\.glsl$/,
type: 'asset/source',
},
{
test: /\.proto$/,
type: 'asset/source',
},
);
if (isServer) {
writeFileSync(