feat(SW-2879): Move BookingWidget to booking-flow package * Fix lockfile * Fix styling * a tiny little booking widget test * Tiny fixes * Merge branch 'master' into feat/sw-2879-booking-widget-to-booking-flow-package * Remove unused scripts * lint:fix * Merge branch 'master' into feat/sw-2879-booking-widget-to-booking-flow-package * Tiny lint fixes * update test * Update Input in booking-flow * Clean up comments etc * Merge branch 'master' into feat/sw-2879-booking-widget-to-booking-flow-package * Setup tracking context for booking-flow * Add missing use client * Fix temp tracking function * Pass booking to booking-widget * Remove comment * Add use client to booking widget tracking provider * Add use client to tracking functions * Merge branch 'master' into feat/sw-2879-booking-widget-to-booking-flow-package * Move debug page * Merge branch 'master' into feat/sw-2879-booking-widget-to-booking-flow-package * Merge branch 'master' into feat/sw-2879-booking-widget-to-booking-flow-package * Merge branch 'master' into feat/sw-2879-booking-widget-to-booking-flow-package Approved-by: Bianca Widstam
63 lines
1.3 KiB
TypeScript
63 lines
1.3 KiB
TypeScript
import * as Sentry from "@sentry/nextjs"
|
|
|
|
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",
|
|
|
|
experimental: {
|
|
swcPlugins: [
|
|
[
|
|
"@swc/plugin-formatjs",
|
|
{
|
|
ast: true,
|
|
},
|
|
],
|
|
],
|
|
},
|
|
|
|
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 Sentry.withSentryConfig(nextConfig, {
|
|
org: "scandic-hotels",
|
|
project: "partner-sas",
|
|
|
|
authToken: process.env.SENTRY_AUTH_TOKEN,
|
|
|
|
// Only print logs for uploading source maps in CI
|
|
silent: !process.env.CI,
|
|
|
|
// Upload a larger set of source maps for prettier stack traces (increases build time)
|
|
widenClientFileUpload: true,
|
|
|
|
// Automatically annotate React components to show their full name in breadcrumbs and session replay
|
|
reactComponentAnnotation: {
|
|
enabled: true,
|
|
},
|
|
|
|
hideSourceMaps: true,
|
|
disableLogger: true,
|
|
})
|