mirror of
https://github.com/M4X809/list-of-lp.git
synced 2025-12-25 19:12:48 +00:00
Add URL argument to Dockerfile and log environment variable in favico API
This commit is contained in:
parent
7461820ede
commit
8d99f739c1
2 changed files with 4 additions and 0 deletions
|
|
@ -5,6 +5,7 @@ WORKDIR /app
|
||||||
# Simplified copy of package files
|
# Simplified copy of package files
|
||||||
COPY package.json bun.lock next.config.ts ./
|
COPY package.json bun.lock next.config.ts ./
|
||||||
ARG NPM_FONT_AWESOME
|
ARG NPM_FONT_AWESOME
|
||||||
|
ARG URL
|
||||||
RUN bun install
|
RUN bun install
|
||||||
|
|
||||||
# Stage 2: Build Next.js with bun
|
# Stage 2: Build Next.js with bun
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,9 @@ import { cookies } from "next/headers";
|
||||||
|
|
||||||
// Absolute URL redirect is required by Next.js middleware & API routes
|
// Absolute URL redirect is required by Next.js middleware & API routes
|
||||||
export async function GET(request: NextRequest) {
|
export async function GET(request: NextRequest) {
|
||||||
|
const urlENV = process.env.URL;
|
||||||
|
console.log("🚀 ~ route.tsx:9 ~ GET ~ urlENV:", urlENV);
|
||||||
|
|
||||||
const url = new URL(request.url);
|
const url = new URL(request.url);
|
||||||
console.log("🚀 ~ route.tsx:8 ~ GET ~ url:", url);
|
console.log("🚀 ~ route.tsx:8 ~ GET ~ url:", url);
|
||||||
const randParam = url.searchParams.get("rand");
|
const randParam = url.searchParams.get("rand");
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue