Skip to content

Commit 251dee1

Browse files
author
Jove Zhong
committed
fix a image link (no /),try to support both GH and Netlify
1 parent 953ef3d commit 251dee1

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ jobs:
2626

2727
- name: Build
2828
run: pnpm run build
29+
env:
30+
GH_PAGE: true
2931

3032
- name: Deploy to GitHub Pages
3133
uses: JamesIves/github-pages-deploy-action@v4

src/data/demos.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ group by window_start,orderNumber;`,
127127
"Collect logs, metrics and tracing via OpenTelemetry, export to Kafka, filter and aggregated by streaming SQL and build dashboards in Timeplus or Grafana.",
128128
category: "Observability",
129129
keywords: ["kafka", "opentelemetry", "grafana", "sql"],
130-
coverImage: "/otlp_cover.png",
130+
coverImage: "otlp_cover.png",
131131
introduction: `[OpenTelemetry](https://opentelemetry.io/) is a collection of APIs, SDKs, and tools. Use it to instrument, generate, collect, and export telemetry data (metrics, logs, and traces) to help you analyze your software’s performance and behavior.
132132
You can install OpenTelemetry collectors on Linux and export data as JSON documents in Kafka topics and have Timeplus to run streaming ETL, routing, alerts and visualization.`,
133133
challenges: `1️⃣ While the OpenTelemetry schema is open and flexible, the exported JSON documents are usually with thousands of lines per messages, with nested structure. Parsing and filtering such complex JSON documents are not easy and error-prone.

vite.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import react from "@vitejs/plugin-react";
33
import { defineConfig } from "vite";
44

55
// Set base path dynamically based on environment
6-
const isProduction = process.env.NODE_ENV === "production";
7-
const basePath = isProduction ? "/demos.timeplus.com/" : "";
6+
const isGithubPage = process.env.GH_PAGE === "true";
7+
const basePath = isGithubPage ? "/demos.timeplus.com/" : "";
88

99
export default defineConfig({
1010
base: basePath,

0 commit comments

Comments
 (0)