# JavaScript

**URL:** https://community.fly.io/c/javascript/29.md?page=2

[Latest](https://community.fly.io/latest.md) · [Categories](https://community.fly.io/categories.md) · [Tags](https://community.fly.io/tags.md)

**Page:** 3

---

## [Cannot find matching keyid corepack issue](https://community.fly.io/t/cannot-find-matching-keyid-corepack-issue/23765)

<div class="topic-metadata">

**Author:** [@danielo515](https://community.fly.io/u/danielo515)\
**Replies:** 0\
**Last updated:** [February 3, 2025, 4:52pm UTC](https://community.fly.io/t/cannot-find-matching-keyid-corepack-issue/23765 "2025-02-03T16:52:51Z")

</div>

Hello. One of my fly machines, that has a node service, has staarted failing with this error: Error: Cannot find matching keyid: {"signatures":\[{"sig":"MEQCIHGqHbvc2zImUPEPFpT4grh6rMYslel+lAjFArx8+RUdAiBfnJA+bgmUvO5Lct…

---

## [Fly deploy fails at 'npm install'](https://community.fly.io/t/fly-deploy-fails-at-npm-install/23699)

<div class="topic-metadata">

**Author:** [@camodue](https://community.fly.io/u/camodue)\
**Replies:** 4\
**Last updated:** [January 29, 2025, 10:56am UTC](https://community.fly.io/t/fly-deploy-fails-at-npm-install/23699 "2025-01-29T10:56:39Z")

</div>

I have a Node.js app running for months and needed to make a small change. Then fly deploy throws the following error ==\> Building image Waiting for depot builder... Waiting for depot builder... ==\> Building image with…

---

## [Unable to run nextjs following the instructions](https://community.fly.io/t/unable-to-run-nextjs-following-the-instructions/23661)

<div class="topic-metadata">

**Author:** [@Tapio](https://community.fly.io/u/Tapio)\
**Replies:** 1\
**Last updated:** [January 27, 2025, 10:22am UTC](https://community.fly.io/t/unable-to-run-nextjs-following-the-instructions/23661 "2025-01-27T10:22:01Z")

</div>

Hello, I followed this guide: and used the npx dockerfile to create the dockerfile and it also creates docker-entrypoint.js. however, after fly deploy I get this error: ERROR Error: failed to spawn command: /app…

---

## [Fly.io replaces 0.0.0.0 with 127.0.0.1 while deploying apps](https://community.fly.io/t/fly-io-replaces-0-0-0-0-with-127-0-0-1-while-deploying-apps/23645)

<div class="topic-metadata">

**Author:** [@swastikmishra](https://community.fly.io/u/swastikmishra)\
**Replies:** 5\
**Last updated:** [January 27, 2025, 7:53am UTC](https://community.fly.io/t/fly-io-replaces-0-0-0-0-with-127-0-0-1-while-deploying-apps/23645 "2025-01-27T07:53:08Z")

</div>

I was playing with Fly.io recently, and noticed something weird while deploying a Fastify server. I had hardcoded 0.0.0.0 to listen for external incoming requests, but when I was looking at the machine logs, I can see t…

---

## [Git commands in fly ssh console work but not inside a node process running in the same machine](https://community.fly.io/t/git-commands-in-fly-ssh-console-work-but-not-inside-a-node-process-running-in-the-same-machine/23615)

<div class="topic-metadata">

**Author:** [@thomasjiangcy](https://community.fly.io/u/thomasjiangcy)\
**Replies:** 6\
**Last updated:** [January 24, 2025, 4:44am UTC](https://community.fly.io/t/git-commands-in-fly-ssh-console-work-but-not-inside-a-node-process-running-in-the-same-machine/23615 "2025-01-24T04:44:33Z")

</div>

Hi there, I have a machine running a simple node server that runs Git operations on the underlying file system (via Fly Volumes). There is currently difference in behaviour when running Git commands when I run it directl…

---

## [Specify auto-stop policy on a machine basis](https://community.fly.io/t/specify-auto-stop-policy-on-a-machine-basis/23624)

<div class="topic-metadata">

**Author:** [@seb97](https://community.fly.io/u/seb97)\
**Replies:** 4\
**Last updated:** [January 23, 2025, 8:02pm UTC](https://community.fly.io/t/specify-auto-stop-policy-on-a-machine-basis/23624 "2025-01-23T20:02:07Z")

</div>

I’d like to configure fly so that one of my machines will auto-stop while the other will stay running. However, I need to specify which machine stays running! Can I not do this in my fly.toml? For simplicity sake, say m…

---

## [App not receiving SIGINT](https://community.fly.io/t/app-not-receiving-sigint/23619)

<div class="topic-metadata">

**Author:** [@seb97](https://community.fly.io/u/seb97)\
**Replies:** 7\
**Last updated:** [January 23, 2025, 4:35pm UTC](https://community.fly.io/t/app-not-receiving-sigint/23619 "2025-01-23T16:35:29Z")

</div>

I am running a NodeJS http express server on my fly machine. Every time Fly sends SIGINT, it does not seem to make it to my app. I am trying to ‘catch’ the SIGINT in my app.js like this. However, nothing gets printed a…

---

## [fly.io deployment problems with Vite React](https://community.fly.io/t/fly-io-deployment-problems-with-vite-react/23599)

<div class="topic-metadata">

**Author:** [@danougill](https://community.fly.io/u/danougill)\
**Replies:** 4\
**Last updated:** [January 23, 2025, 1:59pm UTC](https://community.fly.io/t/fly-io-deployment-problems-with-vite-react/23599 "2025-01-23T13:59:59Z")

</div>

I have a client app built with Vite React. This is a frontend app, which makes calls to an api/backend app. The general problem is: When I navigate to my deployed app with fly (eg: app.fly.dev), it’s an empty page. I ha…

---

## [Reverse Proxy with Wordpress + Nuxt ?](https://community.fly.io/t/reverse-proxy-with-wordpress-nuxt/23377)

<div class="topic-metadata">

**Author:** [@Recall45](https://community.fly.io/u/Recall45)\
**Replies:** 5\
**Last updated:** [January 20, 2025, 2:54am UTC](https://community.fly.io/t/reverse-proxy-with-wordpress-nuxt/23377 "2025-01-20T02:54:56Z")

</div>

Goal: I want to set up a reverse proxy for the /app/blog path in my Nuxt app, so that every time a visitor goes to that URL, it loads content from a WordPress instance. Questions: Has anyone successfully implemented t…

---

## [AstroJS & Pocketbase running but weird problems - data related - intermittent](https://community.fly.io/t/astrojs-pocketbase-running-but-weird-problems-data-related-intermittent/23547)

<div class="topic-metadata">

**Author:** [@buddy](https://community.fly.io/u/buddy)\
**Replies:** 0\
**Last updated:** [January 19, 2025, 4:09am UTC](https://community.fly.io/t/astrojs-pocketbase-running-but-weird-problems-data-related-intermittent/23547 "2025-01-19T04:09:50Z")

</div>

When I navigate to this page, I expect a list of items and at the bottom a count of total items. Sometimes the list won’t display but the total does. Then another time, vice versa. For comparison, I had PB on a differe…

---

## [Server response of 3.75 seconds - How to improve?](https://community.fly.io/t/server-response-of-3-75-seconds-how-to-improve/23484)

<div class="topic-metadata">

**Author:** [@Recall45](https://community.fly.io/u/Recall45)\
**Replies:** 2\
**Last updated:** [January 15, 2025, 2:54pm UTC](https://community.fly.io/t/server-response-of-3-75-seconds-how-to-improve/23484 "2025-01-15T14:54:36Z")

</div>

Context: Im using fly replay I have a nuxt application - and a wordpress application that i use as a cheap SEO friendly CMS. The dev experience is great tbh, im very happy with the set up. However, im not so happy with…

---

## [Nextjs 15 deployment fails](https://community.fly.io/t/nextjs-15-deployment-fails/23057)

<div class="topic-metadata">

**Author:** [@shibilyt](https://community.fly.io/u/shibilyt)\
**Replies:** 2\
**Last updated:** [December 17, 2024, 3:49pm UTC](https://community.fly.io/t/nextjs-15-deployment-fails/23057 "2024-12-17T15:49:27Z")

</div>

I am trying to start a new nextjs 15 project. I just ran the npx create-next-app@latest to initialize my project. But on running fly launch, it fails at building the docker image: ==\> Building image ==\> Building image w…

---

## [fly deploy ERR\_PNPM\_FETCH\_304 error](https://community.fly.io/t/fly-deploy-err-pnpm-fetch-304-error/23060)

<div class="topic-metadata">

**Author:** [@Nilanga](https://community.fly.io/u/Nilanga)\
**Replies:** 1\
**Last updated:** [December 17, 2024, 3:21pm UTC](https://community.fly.io/t/fly-deploy-err-pnpm-fetch-304-error/23060 "2024-12-17T15:21:55Z")

</div>

When i try fly deploy i got below error , I use node.js PNPM WARN GET https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz error (ERR\_PNPM\_FETCH\_304). Will retry in 10 seconds. 2 retries left.

---

## [Why does a Next.js 15 Fetch URL in production on Fly.io change?](https://community.fly.io/t/why-does-a-next-js-15-fetch-url-in-production-on-fly-io-change/22873)

<div class="topic-metadata">

**Author:** [@catto](https://community.fly.io/u/catto)\
**Replies:** 6\
**Last updated:** [November 30, 2024, 10:09pm UTC](https://community.fly.io/t/why-does-a-next-js-15-fetch-url-in-production-on-fly-io-change/22873 "2024-11-30T22:09:39Z")

</div>

When fetching a post on a production next.js 15 hosted on Fly.io the URL that place in the fetch is changing & causing a 404 not found; The request URL in the network tab of the chrome dev tools is: https://www.rleague…

---

## [Fly.io NextJS App Deployment](https://community.fly.io/t/fly-io-nextjs-app-deployment/22737)

<div class="topic-metadata">

**Author:** [@chris-io](https://community.fly.io/u/chris-io)\
**Replies:** 1\
**Last updated:** [November 28, 2024, 5:37am UTC](https://community.fly.io/t/fly-io-nextjs-app-deployment/22737 "2024-11-28T05:37:59Z")

</div>

When I try to deploy my first NextJS app with the Fly.io deploy UI, the build image command fails. Where may I modify these commands? Currently, it is running the command prepare /app when it should just be prepare as m…

---

## [Next.js .env secrets base url keeps showing as localhost:3000](https://community.fly.io/t/next-js-env-secrets-base-url-keeps-showing-as-localhost-3000/22775)

<div class="topic-metadata">

**Author:** [@catto](https://community.fly.io/u/catto)\
**Replies:** 2\
**Last updated:** [November 24, 2024, 8:50pm UTC](https://community.fly.io/t/next-js-env-secrets-base-url-keeps-showing-as-localhost-3000/22775 "2024-11-24T20:50:26Z")

</div>

I am deploying a Next app and when trying to obtain a value from the .env file it’s either undefined or it reads the wrong value of http://localhost:3000 In the .env file it’s defined as: NEXT\_PUBLIC\_BASE\_URL=https:www…

---

## [my capstone project](https://community.fly.io/t/my-capstone-project/22766)

<div class="topic-metadata">

**Author:** [@binusman6332](https://community.fly.io/u/binusman6332)\
**Replies:** 0\
**Last updated:** [November 23, 2024, 4:40pm UTC](https://community.fly.io/t/my-capstone-project/22766 "2024-11-23T16:40:56Z")

</div>

// Import required libraries const express = require(‘express’); const cors = require(‘cors’); const mongoose = require(‘mongoose’); const taskRoutes = require(‘./routes/taskRoutes’); const userRoutes = require(‘./r…

---

## [Can't reach database server Postgresql](https://community.fly.io/t/cant-reach-database-server-postgresql/22763)

<div class="topic-metadata">

**Author:** [@foch01](https://community.fly.io/u/foch01)\
**Replies:** 0\
**Last updated:** [November 23, 2024, 9:25am UTC](https://community.fly.io/t/cant-reach-database-server-postgresql/22763 "2024-11-23T09:25:01Z")

</div>

I can no longer deploy my prisma migration via a github action. My last deployment was 3 months ago. What happened in the meantime ? Here my database url : postgres://user:password@app-name.flycast:5432/db-name?sslmode…

---

## [How to access secrets in a very basic NextJS app?](https://community.fly.io/t/how-to-access-secrets-in-a-very-basic-nextjs-app/22696)

<div class="topic-metadata">

**Author:** [@richardanaya](https://community.fly.io/u/richardanaya)\
**Replies:** 4\
**Last updated:** [November 16, 2024, 9:24pm UTC](https://community.fly.io/t/how-to-access-secrets-in-a-very-basic-nextjs-app/22696 "2024-11-16T21:24:00Z")

</div>

I setup a super simple NextJS with a simple action that returns process.env.SECRET\_WORD with my app having a secret SECRET\_WORD but then when I deploy, I see nothing.

---

## [Display an image from Fly storage](https://community.fly.io/t/display-an-image-from-fly-storage/22372)

<div class="topic-metadata">

**Author:** [@PeterParker](https://community.fly.io/u/PeterParker)\
**Replies:** 5\
**Last updated:** [October 23, 2024, 2:33pm UTC](https://community.fly.io/t/display-an-image-from-fly-storage/22372 "2024-10-23T14:33:55Z")

</div>

Hi, I’m developing a Shopify app using Remix. I’ve implemented image display, and it’s working. Here’s the folder structure for images saved on Tigris Storage. My bucket name: myhdd images |\_\_\_ item-1.jpg |\_\_\_ item-2…

---

## [\`fly launch\` fails with pnpm workspace](https://community.fly.io/t/fly-launch-fails-with-pnpm-workspace/22362)

<div class="topic-metadata">

**Author:** [@pmrotule](https://community.fly.io/u/pmrotule)\
**Replies:** 4\
**Last updated:** [October 21, 2024, 12:52pm UTC](https://community.fly.io/t/fly-launch-fails-with-pnpm-workspace/22362 "2024-10-21T12:52:45Z")

</div>

TLDR; fly launch was failing in my pnpm workspace (monorepo) when running it either inside the app package directory or from the monorepo root level. Creating a .npmrc file at the root with ignore-workspace-root-check=t…

---

## [NODE JS with Typescript Docker Deployment issues with the PORT](https://community.fly.io/t/node-js-with-typescript-docker-deployment-issues-with-the-port/22112)

<div class="topic-metadata">

**Author:** [@JUSTICE](https://community.fly.io/u/JUSTICE)\
**Replies:** 2\
**Last updated:** [October 2, 2024, 9:58pm UTC](https://community.fly.io/t/node-js-with-typescript-docker-deployment-issues-with-the-port/22112 "2024-10-02T21:58:14Z")

</div>

024-10-02T21:00:55Z app\[48e2905fd03968\] ams \[info\]2024-10-02T21:00:55: PM2 log: PM2 successfully stopped 2024-10-02T21:00:56Z app\[48e2905fd03968\] ams \[info\] INFO Main child exited normally with code: 0 2024-10-02T21:00…

---

## [Nextjs app, should I use nginx in front of it](https://community.fly.io/t/nextjs-app-should-i-use-nginx-in-front-of-it/22084)

<div class="topic-metadata">

**Author:** [@Bonadio](https://community.fly.io/u/Bonadio)\
**Replies:** 3\
**Last updated:** [October 1, 2024, 6:11pm UTC](https://community.fly.io/t/nextjs-app-should-i-use-nginx-in-front-of-it/22084 "2024-10-01T18:11:10Z")

</div>

Hi, when I run a Node.js app on AWS EC2, I usually run it behind an Nginx reverse proxy to avoid exposing Node.js directly to the internet. Should I do the same here? I understand that every Fly.io machine runs behind …

---

## [healthcheck roundtrips spiked to \>2000 ms at least a week ago](https://community.fly.io/t/healthcheck-roundtrips-spiked-to-2000-ms-at-least-a-week-ago/21980)

<div class="topic-metadata">

**Author:** [@jgravois](https://community.fly.io/u/jgravois)\
**Replies:** 4\
**Last updated:** [September 22, 2024, 5:51pm UTC](https://community.fly.io/t/healthcheck-roundtrips-spiked-to-2000-ms-at-least-a-week-ago/21980 "2024-09-22T17:51:42Z")

</div>

hi there, i’m seeing something that sounds very similar to: Abnormally slow SSL handshake resulting in slow server responses across Fly apps? i have the same simple remix app deployed to two different apps in ORD. up u…

---

## [No response from puppeteer](https://community.fly.io/t/no-response-from-puppeteer/21105)

<div class="topic-metadata">

**Author:** [@step-advisors](https://community.fly.io/u/step-advisors)\
**Replies:** 6\
**Last updated:** [September 2, 2024, 12:25pm UTC](https://community.fly.io/t/no-response-from-puppeteer/21105 "2024-09-02T12:25:27Z")

</div>

Hello everyone. I have an application on Next.js v 14.2.3. There I am using Puppeteer v 22.12.1. The application has been running stable for about half a year now, no changes have been made to the puppeteer part of the a…

---

## [Node app Error on launch](https://community.fly.io/t/node-app-error-on-launch/21564)

<div class="topic-metadata">

**Author:** [@leandrocunha](https://community.fly.io/u/leandrocunha)\
**Replies:** 2\
**Last updated:** [August 28, 2024, 9:43pm UTC](https://community.fly.io/t/node-app-error-on-launch/21564 "2024-08-28T21:43:56Z")

</div>

I’m trying to launch a simlpe Node app but I got this error message: “Error: failed to fetch an image or build from source: error building: failed to solve: failed to compute cache key: failed to calculate checksum of r…

---

## [Machines API not working from within a NextJS App](https://community.fly.io/t/machines-api-not-working-from-within-a-nextjs-app/21549)

<div class="topic-metadata">

**Author:** [@magnussinger](https://community.fly.io/u/magnussinger)\
**Replies:** 7\
**Last updated:** [August 27, 2024, 6:45pm UTC](https://community.fly.io/t/machines-api-not-working-from-within-a-nextjs-app/21549 "2024-08-27T18:45:59Z")

</div>

Hi everyone, I’m trying to work with the Machines REST API and make some calls to it from within my NextJS App, but somehow I always get the error “failed to fetch” without any further error description. Do you know wha…

---

## [How to disable SSL](https://community.fly.io/t/how-to-disable-ssl/21538)

<div class="topic-metadata">

**Author:** [@leandrocunha](https://community.fly.io/u/leandrocunha)\
**Replies:** 0\
**Last updated:** [August 26, 2024, 8:22pm UTC](https://community.fly.io/t/how-to-disable-ssl/21538 "2024-08-26T20:22:51Z")

</div>

I have a custom domain setted but I would like to disable the SSL on render to be able access this domain without https. How can I do it?

---

## [Cannot install datadog agent to collect traces from my application](https://community.fly.io/t/cannot-install-datadog-agent-to-collect-traces-from-my-application/20364)

<div class="topic-metadata">

**Author:** [@ahmed-doldadress](https://community.fly.io/u/ahmed-doldadress)\
**Replies:** 0\
**Last updated:** [June 14, 2024, 4:33pm UTC](https://community.fly.io/t/cannot-install-datadog-agent-to-collect-traces-from-my-application/20364 "2024-06-14T16:33:51Z")

</div>

I’m trying to find a way to get the datadog agent to run inside a machine to collect custom apm traces from the application. Has anyone did something similar before?

---

## [Have you ever successfully deployed a remix.js app using the indie stack? What's your secret](https://community.fly.io/t/have-you-ever-successfully-deployed-a-remix-js-app-using-the-indie-stack-whats-your-secret/19017)

<div class="topic-metadata">

**Author:** [@justinb](https://community.fly.io/u/justinb)\
**Replies:** 9\
**Last updated:** [April 1, 2024, 4:12pm UTC](https://community.fly.io/t/have-you-ever-successfully-deployed-a-remix-js-app-using-the-indie-stack-whats-your-secret/19017 "2024-04-01T16:12:16Z")

</div>

I can’t for the life of me figure out how to get a remix app deployed. I spend many hours trying to deploy my app with the DnB stack and failed so I switched to indie in hopes of better results. I made a bug report: Init…

[Previous page](https://community.fly.io/c/javascript/29.md?page=1)

[Next page](https://community.fly.io/c/javascript/29.md?page=3)
