Skip to content
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,6 +1,6 @@
---
title: "Data types"
slug: "data-types-1"
slug: "data-types"
excerpt: ""
hidden: false
createdAt: "Fri Apr 05 2024 20:14:17 GMT+0000 (Coordinated Universal Time)"
Expand Down
8 changes: 0 additions & 8 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,19 +1,11 @@
import { createMDX } from "fumadocs-mdx/next";
const withMDX = createMDX();

const isGithubActions = process.env.GITHUB_ACTIONS || false;
const isProduction = process.env.NODE_ENV === "production";

let assetPrefix = isProduction ? "./" : "";
let basePath = "";

if (isGithubActions) {
const repo = process.env.GITHUB_REPOSITORY.replace(/.*?\//, "");

assetPrefix = `/${repo}/`;
basePath = `/${repo}`;
}

/** @type {import('next').NextConfig} */
const config = {
reactStrictMode: true,
Expand Down