Files
supabase/apps/ui-library/next.config.mjs
Ivan Vasilov 3c0cb1a4e7 chore: Fix iframes for Library (#34438)
* Fix the installation urls in production.

* Enable SAMEORIGIN for iframes on supabase.com.

* Remove extra config.
2025-03-26 17:04:07 +01:00

28 lines
761 B
JavaScript

import { withContentlayer } from 'next-contentlayer2'
/** @type {import('next').NextConfig} */
const nextConfig = {
transpilePackages: ['ui', 'common', 'shared-data', 'icons', 'tsconfig'],
basePath: process.env.NEXT_PUBLIC_BASE_PATH,
async redirects() {
return [
...(process.env.NEXT_PUBLIC_BASE_PATH?.length
? [
{
source: '/',
destination: process.env.NEXT_PUBLIC_BASE_PATH,
basePath: false,
permanent: false,
},
]
: []),
]
},
eslint: {
// We are already running linting via GH action, this will skip linting during production build on Vercel
ignoreDuringBuilds: true,
},
}
export default withContentlayer(nextConfig)