Setup NextJS Project and Gluestack UI
This commit is contained in:
35
dashboard/next.config.mjs
Normal file
35
dashboard/next.config.mjs
Normal file
@@ -0,0 +1,35 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user