36 lines
898 B
JavaScript
36 lines
898 B
JavaScript
import { withGluestackUI } from '@gluestack/ui-next-adapter';
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
eslint: {
|
|
ignoreDuringBuilds: true,
|
|
},
|
|
typescript: {
|
|
ignoreBuildErrors: true,
|
|
},
|
|
transpilePackages: [],
|
|
experimental: {
|
|
// Enable experimental features if needed
|
|
},
|
|
};
|
|
|
|
// Apply gluestack adapter
|
|
const gluestackConfig = withGluestackUI(nextConfig);
|
|
|
|
// Remove invalid compiler options that gluestack might add
|
|
if (gluestackConfig.compiler && gluestackConfig.compiler.define) {
|
|
delete gluestackConfig.compiler.define;
|
|
}
|
|
|
|
// Remove invalid turbopack option
|
|
if (gluestackConfig.turbopack) {
|
|
delete gluestackConfig.turbopack;
|
|
}
|
|
|
|
// Remove any other invalid options that might cause warnings
|
|
if (gluestackConfig.compiler && Object.keys(gluestackConfig.compiler).length === 0) {
|
|
delete gluestackConfig.compiler;
|
|
}
|
|
|
|
export default gluestackConfig;
|