Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: update ci #7

Merged
merged 1 commit into from
May 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Overview
description: Design tokens overview
draft: true
draft: false
---

Overview
2 changes: 1 addition & 1 deletion apps/design-system/next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { withContentlayer } from "next-contentlayer";

const isCI = Boolean(process.env.GITHUB_PAGES);
const isCI = Boolean(process.env.CI);
const prefix = isCI ? "/ogcio-ds-poc" : undefined;

/** @type {import('next').NextConfig} */
Expand Down
1 change: 1 addition & 0 deletions apps/design-system/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"scripts": {
"dev": "next dev",
"build": "next build",
"build:prod": "cross-env CI=true next build",
"start": "next start",
"lint": "next lint",
"test": "vitest run",
Expand Down
6 changes: 0 additions & 6 deletions apps/design-system/src/app/[...slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@ import { Mdx } from "@/components/document/mdx";
import * as documents from "@/lib/documents/documents";
import { DocumentStatus } from "@/components/document/document-status";

export async function generateStaticParams() {
return documents.getAll().map((document) => ({
slug: document.slug.split("/"),
}));
}

type DocPageProps = {
params: {
slug: string[];
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"scripts": {
"design-system": "nx run @govie-ds/design-system:dev",
"design-system:build": "nx run @govie-ds/design-system:build",
"design-system:build:prod": "cross-env CI=true && nx run @govie-ds/design-system:build",
"design-system:build:prod": "nx run @govie-ds/design-system:build:prod",
"build": "nx run-many --target=build --all",
"test": "nx run-many --target=test --all --verbose",
"tokens:build": "nx run @govie-ds/tokens:build",
Expand Down