Fix dynamic build
This commit is contained in:
@ -18,8 +18,6 @@ RUN bunx prisma generate
|
|||||||
|
|
||||||
# Uncomment the following line in case you want to disable telemetry during the build.
|
# Uncomment the following line in case you want to disable telemetry during the build.
|
||||||
ENV NEXT_TELEMETRY_DISABLED=1
|
ENV NEXT_TELEMETRY_DISABLED=1
|
||||||
ARG DOCKER_BUILD=0
|
|
||||||
ENV DOCKER_BUILD=$DOCKER_BUILD
|
|
||||||
|
|
||||||
# Copy the rest of the code
|
# Copy the rest of the code
|
||||||
RUN bun run build
|
RUN bun run build
|
||||||
|
|||||||
@ -3,9 +3,6 @@ import type { Metadata } from "next";
|
|||||||
import { Geist, Geist_Mono } from "next/font/google";
|
import { Geist, Geist_Mono } from "next/font/google";
|
||||||
import "./globals.css";
|
import "./globals.css";
|
||||||
|
|
||||||
export const dynamic = process.env.DOCKER_BUILD === "1" ? "force-dynamic" : "auto";
|
|
||||||
export const revalidate = process.env.DOCKER_BUILD === "1" ? 0 : false;
|
|
||||||
|
|
||||||
const geistSans = Geist({
|
const geistSans = Geist({
|
||||||
variable: "--font-geist-sans",
|
variable: "--font-geist-sans",
|
||||||
subsets: ["latin"],
|
subsets: ["latin"],
|
||||||
|
|||||||
Reference in New Issue
Block a user