lainTSX/next.config.js
2022-07-24 19:00:11 +04:00

24 lines
544 B
JavaScript

/** @type {import('next').NextConfig} */
const nextConfig = {
webpack(config, { isServer }) {
// Allow importing of shader files (e.g. `.glsl` -- filenames below)
// @see: https://github.com/glslify/glslify-loader
config.module.rules.push(
{
test: /\.(glsl|vs|fs|vert|frag|ps)$/,
exclude: /node_modules/,
use: ["raw-loader"],
},
{
test: /\.(mp4|vtt)$/,
use: "file-loader",
}
);
return config;
},
reactStrictMode: true,
};
module.exports = nextConfig;