Skip to content

Commit 78f74bd

Browse files
committed
use custom domain for pages
1 parent 71293f1 commit 78f74bd

File tree

5 files changed

+5
-11
lines changed

5 files changed

+5
-11
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ To enable GitHub Pages for this repository:
123123
5. Under "Branch", select "gh-pages" and "/ (root)"
124124
6. Click "Save"
125125

126-
The site will be available at `https://goodrxoss.github.io/lifecycle-docs/` (or your custom domain if configured).
126+
The site will be available at `https://uselifecycle.com/`.
127127

128128
### Static Build for GitHub Pages
129129

next.config.mjs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616

1717
import nextra from "nextra";
1818
import { remarkCodeHike, recmaCodeHike } from "codehike/mdx";
19-
// eslint-disable-next-line no-undef
20-
const isLocal = process.env?.NEXT_PUBLIC_DEV_ENV === 'local';
2119

2220
/** @type {import('codehike/mdx').CodeHikeConfig} */
2321
export const chConfig = {
@@ -47,8 +45,6 @@ const nextConfig = {
4745
output: 'export',
4846
pageExtensions: ["ts", "tsx", "js", "jsx", "md", "mdx", "css"],
4947
reactStrictMode: true,
50-
assetPrefix: !isLocal ? '/lifecycle-docs' : '',
51-
basePath: !isLocal ? '/lifecycle-docs' : '',
5248
eslint: {
5349
dirs: ["src"],
5450
ignoreDuringBuilds: true,

public/CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
uselifecycle.com

src/components/image/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ export const DefinedImage = ({
5252
width = 800,
5353
height = 500,
5454
}: DefinedImageProps) => {
55-
const isLocal = process.env.NEXT_PUBLIC_DEV_ENV === "local";
56-
const currentSrc = !isLocal ? `/lifecycle-docs${src}` : src;
55+
const currentSrc = src;
5756
return width && height ? (
5857
<Image
5958
src={currentSrc}

src/theme.config.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,10 @@ import { Separator } from "@/components/ui/separator";
2525
import { Code } from "@/components";
2626
import Image from "next/image";
2727

28-
const basePath = process.env.NODE_ENV === "production" ? "/lifecycle-docs" : "";
29-
3028
const logo = (
3129
<div className="flex items-center gap-2 logo-shake">
3230
<Image
33-
src={`${basePath}/logo.png`}
31+
src="/logo.png"
3432
alt="Lifecycle"
3533
width={32}
3634
height={32}
@@ -73,7 +71,7 @@ export const HeadMeta = () => {
7371
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7472
<meta property="og:title" content="Lifecycle" />
7573
<meta property="og:description" content="Documentation for Lifecycle" />
76-
<link rel="icon" type="image/png" href={`${basePath}/logo.png`} />
74+
<link rel="icon" type="image/png" href="/logo.png" />
7775
</>
7876
);
7977
};

0 commit comments

Comments
 (0)