53 lines
1.1 KiB
JavaScript
53 lines
1.1 KiB
JavaScript
module.exports = {
|
|
transpilePackages: ["@link-stack/leafcutter-ui", "@link-stack/opensearch-common"],
|
|
experimental: {
|
|
missingSuspenseWithCSRBailout: false,
|
|
},
|
|
poweredByHeader: false,
|
|
rewrites: async () => ({
|
|
fallback: [
|
|
{
|
|
source: "/:path*",
|
|
destination: "/api/proxy/:path*",
|
|
},
|
|
],
|
|
}),
|
|
/*
|
|
basePath: "/proxy/leafcutter",
|
|
assetPrefix: "/proxy/leafcutter",
|
|
i18n: {
|
|
locales: ["en", "fr"],
|
|
defaultLocale: "en",
|
|
},
|
|
*/
|
|
|
|
/*
|
|
async headers() {
|
|
return [
|
|
{
|
|
source: '/:path*',
|
|
headers: [
|
|
|
|
{
|
|
key: 'Content-Security-Policy',
|
|
value: ContentSecurityPolicy.replace(/\s{2,}/g, ' ').trim()
|
|
},
|
|
|
|
{
|
|
key: 'Strict-Transport-Security',
|
|
value: 'max-age=63072000; includeSubDomains; preload'
|
|
},
|
|
{
|
|
key: 'X-XSS-Protection',
|
|
value: '1; mode=block'
|
|
},
|
|
{
|
|
key: 'X-Frame-Options',
|
|
value: 'SAMEORIGIN'
|
|
}
|
|
],
|
|
},
|
|
]
|
|
}
|
|
*/
|
|
};
|