Skip to content

Commit 57ba8a4

Browse files
committed
feat: add CNAME for custom domain and update homepage URL in package.json
1 parent fee6398 commit 57ba8a4

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ jobs:
3434
- name: Build Storybook
3535
run: npx storybook build --output-dir ./storybook-static
3636

37+
- name: Add CNAME for custom domain
38+
run: echo 'ui-kit.hacklm.dev' > ./storybook-static/CNAME
39+
3740
- uses: actions/configure-pages@v5
3841

3942
- uses: actions/upload-pages-artifact@v3

.storybook/main.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import type { StorybookConfig } from "@storybook/react-vite";
2-
import type { InlineConfig } from "vite";
32

43
const config: StorybookConfig = {
54
stories: [
@@ -15,10 +14,6 @@ const config: StorybookConfig = {
1514
docs: {
1615
defaultName: "Docs",
1716
},
18-
viteFinal: (config: InlineConfig) => {
19-
config.base = "/ui-kit/";
20-
return config;
21-
},
2217
};
2318

2419
export default config;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.1.0",
44
"description": "HackLM design system — all components, tokens, and patterns in one place.",
55
"type": "module",
6-
"homepage": "https://hacklmdev.github.io/ui-kit",
6+
"homepage": "https://ui-kit.hacklm.dev/",
77
"scripts": {
88
"storybook": "storybook dev -p 6006",
99
"build-storybook": "storybook build",

0 commit comments

Comments
 (0)