feat: NEXT_PUBLIC_API_URL
This commit is contained in:
@@ -55,6 +55,7 @@ jobs:
|
||||
- name: 🏗️ Build image
|
||||
run: |
|
||||
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:${{ github.sha }} \
|
||||
.
|
||||
|
||||
@@ -10,6 +10,8 @@ FROM node:22-alpine AS builder
|
||||
WORKDIR /app
|
||||
|
||||
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 . .
|
||||
|
||||
@@ -5,7 +5,7 @@ export const siteConfig = {
|
||||
jellyfinUrl: "https://momostreaming.com",
|
||||
minecraftPath: "/minecraft",
|
||||
astroneerPath: "/astroneer",
|
||||
apiUrl: process.env.NEXT_PUBLIC_API_URL ?? "",
|
||||
apiUrl: process.env.NEXT_PUBLIC_API_URL,
|
||||
};
|
||||
|
||||
export const minecraftServer = {
|
||||
|
||||
Reference in New Issue
Block a user