Skip to content

Commit 193627e

Browse files
authored
Merge pull request #39 from AutoMaker-Org/copilot/fix-build-issues
Fix build issues by switching from Google Fonts to local fonts
2 parents 7282113 + 72560cb commit 193627e

6 files changed

Lines changed: 1188 additions & 445 deletions

File tree

.github/workflows/pr-check.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ jobs:
2525
cache-dependency-path: package-lock.json
2626

2727
- name: Install dependencies
28-
run: npm ci
28+
# Use npm install instead of npm ci to correctly resolve platform-specific
29+
# optional dependencies (e.g., @tailwindcss/oxide, lightningcss binaries)
30+
run: npm install
2931

3032
- name: Run build:electron
3133
run: npm run build:electron

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ jobs:
4141
cache-dependency-path: package-lock.json
4242

4343
- name: Install dependencies
44-
run: npm ci
44+
# Use npm install instead of npm ci to correctly resolve platform-specific
45+
# optional dependencies (e.g., @tailwindcss/oxide, lightningcss binaries)
46+
run: npm install
4547

4648
- name: Build Electron App (macOS)
4749
if: matrix.os == 'macos-latest'

.npmrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Cross-platform compatibility for Tailwind CSS v4 and lightningcss
2+
# These packages use platform-specific optional dependencies that npm
3+
# automatically resolves based on your OS (macOS, Linux, Windows, WSL)
4+
#
5+
# IMPORTANT: When switching platforms or getting platform mismatch errors:
6+
# 1. Delete node_modules: rm -rf node_modules apps/*/node_modules
7+
# 2. Run: npm install
8+
#
9+
# In CI/CD: Use "npm install" instead of "npm ci" to allow npm to resolve
10+
# the correct platform-specific binaries at install time.

apps/app/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,12 @@
4343
"@radix-ui/react-slot": "^1.2.4",
4444
"@radix-ui/react-tabs": "^1.1.13",
4545
"@radix-ui/react-tooltip": "^1.2.8",
46-
"@tailwindcss/oxide-linux-x64-gnu": "^4.1.17",
4746
"@tanstack/react-query": "^5.90.12",
4847
"class-variance-authority": "^0.7.1",
4948
"clsx": "^2.1.1",
5049
"cmdk": "^1.1.1",
5150
"dotenv": "^17.2.3",
52-
"lightningcss-linux-x64-gnu": "^1.30.2",
51+
"geist": "^1.5.1",
5352
"lucide-react": "^0.556.0",
5453
"next": "16.0.7",
5554
"react": "19.2.0",

apps/app/src/app/layout.tsx

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,11 @@
11
import type { Metadata } from "next";
2-
import { Geist, Geist_Mono } from "next/font/google";
2+
import { GeistSans as GeistSansFont } from "geist/font/sans";
3+
import { GeistMono as GeistMonoFont } from "geist/font/mono";
34
import { Toaster } from "sonner";
45
import "./globals.css";
56

6-
const geistSans = Geist({
7-
variable: "--font-geist-sans",
8-
subsets: ["latin"],
9-
});
10-
11-
const geistMono = Geist_Mono({
12-
variable: "--font-geist-mono",
13-
subsets: ["latin"],
14-
});
15-
7+
const GeistSans = GeistSansFont({ variable: "--font-geist-sans" });
8+
const GeistMono = GeistMonoFont({ variable: "--font-geist-mono" });
169
export const metadata: Metadata = {
1710
title: "Automaker - Autonomous AI Development Studio",
1811
description: "Build software autonomously with intelligent orchestration",
@@ -26,7 +19,7 @@ export default function RootLayout({
2619
return (
2720
<html lang="en" suppressHydrationWarning>
2821
<body
29-
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
22+
className={`${GeistSans.variable} ${GeistMono.variable} antialiased`}
3023
>
3124
{children}
3225
<Toaster richColors position="bottom-right" />

0 commit comments

Comments
 (0)