Setup NextJS Project and Gluestack UI

This commit is contained in:
Justin xzHome
2025-10-05 13:53:15 +09:00
parent ba998eb401
commit ec040d8318
24 changed files with 11312 additions and 0 deletions

35
dashboard/next.config.mjs Normal file
View 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;