Merged in feat/sw-2781-partner-sas-site-setup (pull request #2432)
feat(SW-2781): Setup SAS partner site * Add boilerplate for SAS partner site * Fonts * netlify.toml Approved-by: Linus Flood
This commit is contained in:
26
apps/partner-sas/next.config.ts
Normal file
26
apps/partner-sas/next.config.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
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
|
||||
Reference in New Issue
Block a user