feat(SW-2880) Prepare booking flow package * Init booking-flow package * Add gitignore * Use booking-flow package * Use design-system Approved-by: Joakim Jäderberg
31 lines
588 B
TypeScript
31 lines
588 B
TypeScript
import type { NextConfig } from "next"
|
|
|
|
const nextConfig: NextConfig = {
|
|
poweredByHeader: false,
|
|
trailingSlash: false,
|
|
transpilePackages: [
|
|
"@scandic-hotels/common",
|
|
"@scandic-hotels/trpc",
|
|
"@scandic-hotels/booking-flow",
|
|
],
|
|
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
|