Skip to content

Commit

Permalink
ci(build): fix pipeline failing due to unspecified base and head
Browse files Browse the repository at this point in the history
  • Loading branch information
MFarabi619 committed Dec 2, 2024
1 parent c0af863 commit ab33c5c
Show file tree
Hide file tree
Showing 22 changed files with 995 additions and 94 deletions.
9 changes: 0 additions & 9 deletions .github/workflows/BUILD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ jobs:
- name: Fetch main branch
run: git fetch origin main:main # Explicitly fetch the 'main' branch to ensure it's available

- name: List all branches
run: git branch -a # Debugging step to list all branches fetched in the runner

- name: 📦 Install pnpm
uses: pnpm/action-setup@v4

Expand All @@ -33,12 +30,6 @@ jobs:
with:
node-version: 20

- name: Debug Git Status
run: |
git status # Show the current branch and changes
git branch -a # List all local and remote branches
git log -1 # Show the last commit for debug purposes
- name: 🧹 Lint Projects
# TODO: Restore functionality after pipeline is fixed
run: pnpm i;
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/app/(docs)/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type { ReactNode } from 'react'
/* import { RootToggle } from 'fumadocs-ui/components/layout/root-toggle' */
import { DocsLayout } from 'fumadocs-ui/layouts/notebook'
import { source } from '../../source'
/* https://fumadocs.vercel.app/docs/ui/blocks/layout#notebook */
/* import { DocsLayout } from 'fumadocs-ui/layouts/docs' */
import { DocsLayout } from 'fumadocs-ui/layouts/notebook'
import { baseOptions } from '../layout.config'
import 'katex/dist/katex.css'

Expand Down
5 changes: 5 additions & 0 deletions apps/docs/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
declare module '*.svg' {
const content: any
export const ReactComponent: any
export default content
}
5 changes: 4 additions & 1 deletion apps/docs/netlify.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[build]
command = "pnpm nx build docs --prod --verbose"
command = "pnpm nx affected -t=build --exclude='*,!docs' --verbose"
publish = "apps/docs/.next"

[[plugins]]
package = "@netlify/plugin-nextjs"
57 changes: 37 additions & 20 deletions apps/docs/next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { composePlugins, withNx } from '@nx/next'
// @ts-check

// import { composePlugins, withNx } from '@nx/next'

import { createMDX } from 'fumadocs-mdx/next'

Expand All @@ -16,19 +18,31 @@ const defaultImageHostnames = [
'res.cloudinary.com',
]

const nextConfig = {
nx: {
// Set this to true if you would like to use SVGR
// See: https://github.com/gregberge/svgr
svgr: false,
reactStrictMode: true,
typescript: {
// !! WARN !!
// Dangerously allow production builds to successfully complete even if
// your project has type errors.
// !! WARN !!
ignoreBuildErrors: true,
},
/**
* @type {import('@nx/next/plugins/with-nx').WithNxOptions}
*/
// const nextConfig = {
// nx: {
// // Set this to true if you would like to use SVGR
// // See: https://github.com/gregberge/svgr
// svgr: false,
// },
// }

/** @type {import('next').NextConfig} */
const config = {
reactStrictMode: true,
typescript: {
// !! WARN !!
// Dangerously allow production builds to successfully complete even if
// your project has type errors.
// !! WARN !!
ignoreBuildErrors: true,
},
eslint: {
// Warning: This allows production builds to successfully complete even if
// your project has ESLint errors.
ignoreDuringBuilds: true,
},
output: 'standalone',
images: {
Expand All @@ -42,10 +56,13 @@ const nextConfig = {

const withMDX = createMDX({})

const plugins = [
// Add more Next.js plugins to this list if needed.
withNx,
withMDX,
]
// const plugins = [
// // Add more Next.js plugins to this list if needed.
// withNx,
// withMDX,
// ]

// export default composePlugins(...plugins)(nextConfig)

export default composePlugins(...plugins)(nextConfig)
export default withMDX(config)
// export default withMDX(nextConfig);
Loading

0 comments on commit ab33c5c

Please sign in to comment.