module.exports = {
  env: {
    commitTag: process.env.COMMIT_TAG || 'local',
  },
  publicRuntimeConfig: {
    // Will be available on both server and client
    JELLYFIN_TYPE: process.env.JELLYFIN_TYPE,
  },
  images: {
    domains: ['image.tmdb.org'],
  },
  webpack(config) {
    config.module.rules.push({
      test: /\.svg$/,
      issuer: /\.(js|ts)x?$/,
      use: ['@svgr/webpack'],
    });

    return config;
  },
};
