mirror of
https://github.com/supabase/supabase.git
synced 2026-10-14 13:49:09 +03:00
* Add a new textarea component which autoexpands depending on number of content rows. * Use the new ExpandingTextArea in the AIAssistantPanel. * Remove old unused text area. * Move around some of the props in the ExpandingTextArea. * Make the value prop mandatory. * Fix minor stuff in the Design System app. * Add examples for Expanding Text Area. * add max height to the expanding text area. * Add todo comment in database-new app.
42 lines
953 B
JavaScript
42 lines
953 B
JavaScript
import { withContentlayer } from 'next-contentlayer2'
|
|
|
|
const BASE_PATH = process.env.NEXT_PUBLIC_BASE_PATH || '/design-system'
|
|
|
|
/** @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 [
|
|
...(BASE_PATH.length
|
|
? [
|
|
{
|
|
source: '/',
|
|
destination: BASE_PATH,
|
|
basePath: false,
|
|
permanent: false,
|
|
},
|
|
]
|
|
: []),
|
|
]
|
|
},
|
|
}
|
|
|
|
export default withContentlayer(nextConfig)
|