feat: NEXT_PUBLIC_API_URL
This commit is contained in:
@@ -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 }} \
|
||||||
.
|
.
|
||||||
|
|||||||
@@ -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 . .
|
||||||
|
|||||||
@@ -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 = {
|
||||||
|
|||||||
Reference in New Issue
Block a user