import type { NextConfig } from "next" const nextConfig: NextConfig = { poweredByHeader: false, trailingSlash: false, transpilePackages: ["@scandic-hotels/common", "@scandic-hotels/trpc"], output: "standalone", webpack: function (config: any) { config.module.rules.push( { test: /\.(graphql|gql)/, exclude: /node_modules/, loader: "graphql-tag/loader", }, { test: /\.svg$/, use: ["@svgr/webpack"], } ) return config }, } export default nextConfig