Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable Telemetry in app.dockerfile for Next.js #160

Open
bigsk1 opened this issue Jun 2, 2024 · 0 comments
Open

Disable Telemetry in app.dockerfile for Next.js #160

bigsk1 opened this issue Jun 2, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@bigsk1
Copy link

bigsk1 commented Jun 2, 2024

Is your feature request related to a problem? Please describe.
Setting disable during build process

Describe the solution you'd like

FROM node:alpine

ARG NEXT_PUBLIC_WS_URL
ARG NEXT_PUBLIC_API_URL
ENV NEXT_PUBLIC_WS_URL=${NEXT_PUBLIC_WS_URL}
ENV NEXT_PUBLIC_API_URL=${NEXT_PUBLIC_API_URL}

# Set environment variable to disable telemetry
ENV NEXT_TELEMETRY_DISABLED 1

WORKDIR /home/perplexica

COPY ui /home/perplexica/

RUN yarn install
RUN yarn build

CMD ["yarn", "start"]

Describe alternatives you've considered
n/a

Additional context
Disable also when running without docker?

Tested and working

~/apps/Perplexica master  ❯ docker exec -it perplexica-perplexica-frontend-1 /bin/sh                                                                                  

/home/perplexica # npx next telemetry status
Next.js Telemetry

Status: Disabled

You have opted-out of Next.js' anonymous telemetry program.
No data will be collected from your machine.
Learn more: https://nextjs.org/telemetry
@bigsk1 bigsk1 added the enhancement New feature or request label Jun 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant