feat: NEXT_PUBLIC_API_URL
CI / 🔍 Lint & Type Check (push) Successful in 1m5s
CI / 🐳 Build & Push Image (push) Successful in 17s

This commit is contained in:
2026-07-10 23:22:09 +02:00
parent 0a289b6c23
commit c7e6d1c72b
3 changed files with 4 additions and 1 deletions
+1
View File
@@ -55,6 +55,7 @@ jobs:
- name: 🏗️ Build image - name: 🏗️ Build image
run: | run: |
docker build \ docker build \
--build-arg NEXT_PUBLIC_API_URL="${{ secrets.NEXT_PUBLIC_API_URL }}" \
-t git.leonmorival.xyz/leonm/landing-server:latest \ -t git.leonmorival.xyz/leonm/landing-server:latest \
-t git.leonmorival.xyz/leonm/landing-server:${{ github.sha }} \ -t git.leonmorival.xyz/leonm/landing-server:${{ github.sha }} \
. .
+2
View File
@@ -10,6 +10,8 @@ FROM node:22-alpine AS builder
WORKDIR /app WORKDIR /app
ENV NEXT_TELEMETRY_DISABLED=1 ENV NEXT_TELEMETRY_DISABLED=1
ARG NEXT_PUBLIC_API_URL
ENV NEXT_PUBLIC_API_URL=$NEXT_PUBLIC_API_URL
COPY --from=deps /app/node_modules ./node_modules COPY --from=deps /app/node_modules ./node_modules
COPY . . COPY . .
+1 -1
View File
@@ -5,7 +5,7 @@ export const siteConfig = {
jellyfinUrl: "https://momostreaming.com", jellyfinUrl: "https://momostreaming.com",
minecraftPath: "/minecraft", minecraftPath: "/minecraft",
astroneerPath: "/astroneer", astroneerPath: "/astroneer",
apiUrl: process.env.NEXT_PUBLIC_API_URL ?? "", apiUrl: process.env.NEXT_PUBLIC_API_URL,
}; };
export const minecraftServer = { export const minecraftServer = {