wuyiqun0718 commited on
Commit
87142df
1 Parent(s): 9a7957b

remove header

Browse files
Files changed (2) hide show
  1. Dockerfile +0 -5
  2. app/layout.tsx +3 -1
Dockerfile CHANGED
@@ -29,15 +29,10 @@ WORKDIR /app
29
 
30
  ENV NODE_ENV production
31
 
32
- RUN \
33
- addgroup --system --gid 1001 nodejs; \
34
- adduser --system --uid 1001 nextjs
35
-
36
  COPY --from=builder --link /app/public ./public
37
 
38
  # Automatically leverage output traces to reduce image size
39
  # https://nextjs.org/docs/advanced-features/output-file-tracing
40
- COPY --chown=nextjs:nodejs --from=builder /app/ ./
41
  COPY --from=builder --link --chown=1000:1000 /app/.next/standalone ./
42
  COPY --from=builder --link --chown=1000:1000 /app/.next/static ./.next/static
43
  COPY --from=builder --link --chown=1000:1000 /app/.next/cache/images ./.next/cache/images
 
29
 
30
  ENV NODE_ENV production
31
 
 
 
 
 
32
  COPY --from=builder --link /app/public ./public
33
 
34
  # Automatically leverage output traces to reduce image size
35
  # https://nextjs.org/docs/advanced-features/output-file-tracing
 
36
  COPY --from=builder --link --chown=1000:1000 /app/.next/standalone ./
37
  COPY --from=builder --link --chown=1000:1000 /app/.next/static ./.next/static
38
  COPY --from=builder --link --chown=1000:1000 /app/.next/cache/images ./.next/cache/images
app/layout.tsx CHANGED
@@ -35,6 +35,8 @@ interface RootLayoutProps {
35
  }
36
 
37
  export default function RootLayout({ children }: RootLayoutProps) {
 
 
38
  return (
39
  <html lang="en" suppressHydrationWarning>
40
  <body
@@ -52,7 +54,7 @@ export default function RootLayout({ children }: RootLayoutProps) {
52
  disableTransitionOnChange
53
  >
54
  <div className="flex flex-col min-h-screen">
55
- <Header />
56
  <main className="flex flex-col flex-1 bg-muted/50">{children}</main>
57
  </div>
58
  <TailwindIndicator />
 
35
  }
36
 
37
  export default function RootLayout({ children }: RootLayoutProps) {
38
+ console.log(location.host);
39
+ console.log(location.hostname);
40
  return (
41
  <html lang="en" suppressHydrationWarning>
42
  <body
 
54
  disableTransitionOnChange
55
  >
56
  <div className="flex flex-col min-h-screen">
57
+ {!process.env.NEXT_PUBLIC_IS_HUGGING_FACE && <Header />}
58
  <main className="flex flex-col flex-1 bg-muted/50">{children}</main>
59
  </div>
60
  <TailwindIndicator />