mirror of
https://github.com/supabase/supabase.git
synced 2026-10-18 15:49:09 +03:00
* chore: deprecate old files. add new one with first story * init multi select * docs * Update multi-select.mdx * deprecation notices * Delete MultiSelect.stories.tsx
40 lines
929 B
JavaScript
40 lines
929 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 || '/design-system',
|
|
images: {
|
|
remotePatterns: [
|
|
{
|
|
protocol: 'https',
|
|
hostname: 'avatars.githubusercontent.com',
|
|
},
|
|
{
|
|
protocol: 'https',
|
|
hostname: 'images.unsplash.com',
|
|
},
|
|
{
|
|
protocol: 'https',
|
|
hostname: 'pbs.twimg.com',
|
|
},
|
|
],
|
|
},
|
|
async redirects() {
|
|
return [
|
|
...(process.env.NEXT_PUBLIC_BASE_PATH?.length
|
|
? [
|
|
{
|
|
source: '/',
|
|
destination: process.env.NEXT_PUBLIC_BASE_PATH,
|
|
basePath: false,
|
|
permanent: false,
|
|
},
|
|
]
|
|
: []),
|
|
]
|
|
},
|
|
}
|
|
|
|
export default withContentlayer(nextConfig)
|