About 4,110,000 results
Open links in new tab
  1. Adding Favicon to NextJs App router application

    Mar 8, 2023 · NextJS will then automatically generate the link tag in the page's head tag (see here for official docs). There is no need to add it to the metadata object in src/app/layout.tsx unless …

  2. How to deploy a Next.js app on HTTPS (SSL connection) with …

    Oct 25, 2022 · Make sure that the image builds: docker build -t nextjs:latest -f Dockerfile . Step 2 - Set up a Docker Compose environment The Docker Compose environment will have two …

  3. How to use different .env files with nextjs? - Stack Overflow

    Dec 24, 2019 · I would like to have different configuration files for the environment variables and be able to use them in my next project. I saw the example with dotenv. But I don't like to define …

  4. Why is my NextJS component rendering twice? - Stack Overflow

    @CubeStorm There is a parent component which is the dashboard layout. That one is also rendered but together with the child component. I notice that because they both render twice. …

  5. Nextjs 13 is insanely slow in dev environment - Stack Overflow

    Jun 5, 2023 · I recently switched to Nextjs 13 and I noticed it's insanely slow when I run my app on localhost via npm run dev Pages even take 10 seconds and sometimes even longer to …

  6. How to get Next.JS environment variables on client side?

    Aug 7, 2022 · To access the environment variables (.env) from client-side you have to prefix the variables with NEXT_PUBLIC_ For example : if your env variable is MY_PASSWORD=12345 …

  7. How to read/write a csv-file in local NextJS app? - Stack Overflow

    Jun 1, 2024 · How can I read/write from a csv-file, for example in the public folder, on start-up of the app, or on a button click for example? Is the theoretically possible, or am I getting things …

  8. Next 14: how to set cookie in middleware and get it in root layout

    Mar 22, 2024 · finally i've got it! When you set cookie in middleware the layout.tsx do not has already set cookie header in it's request indeed, but instead middleware pass a header to set …

  9. How to get query params using Server component (next 13)

    Dec 22, 2022 · Next13 is out, and they advise to use the new app directory where every component is by default a "Server Component" Inside a "server …

  10. nextjs: how can I do a fetch on a local path? - Stack Overflow

    Dec 27, 2021 · I would like to use the fetch method on a relative path such as : export async function getServerSideProps () { // Fetch data from local API const res = await fetch …

Refresh