mirror of
https://github.com/tinyhumansai/openhuman.git
synced 2026-07-28 13:32:23 +00:00
- Updated next.config.ts to pin Turbopack root to the app directory for better workspace management. - Modified package.json scripts to use Webpack during development and build processes. - Refactored postcss.config.mjs to set the base path for Tailwind CSS. - Replaced CSS imports in globals.css with Tailwind directives for better styling management. - Introduced RotatingTetrahedronCanvas component for dynamic visual effects on the Welcome page. - Revamped Welcome page layout to include the new canvas and improve overall design and user engagement.
24 lines
806 B
TypeScript
24 lines
806 B
TypeScript
import type { NextConfig } from 'next';
|
|
import path from 'path';
|
|
import { fileURLToPath } from 'node:url';
|
|
|
|
// Pin Turbopack root to this app so a parent lockfile (e.g. ~/yarn.lock) is not chosen as the workspace root.
|
|
const landerRoot = path.dirname(fileURLToPath(import.meta.url));
|
|
|
|
// Enables static export so the landing site can be hosted on GitHub Pages.
|
|
// `NEXT_PUBLIC_BASE_PATH` is used so project pages can be deployed under `/${repo}`.
|
|
const basePath = process.env.NEXT_PUBLIC_BASE_PATH;
|
|
const normalizedBasePath = basePath && basePath.trim().length > 0 ? basePath : undefined;
|
|
|
|
const nextConfig: NextConfig = {
|
|
output: 'export',
|
|
trailingSlash: true,
|
|
basePath: normalizedBasePath,
|
|
assetPrefix: normalizedBasePath,
|
|
turbopack: {
|
|
root: landerRoot,
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|