Skip to content
This repository has been archived by the owner on Mar 15, 2024. It is now read-only.

Question: how to record Appmap with Nextjs #249

Open
amouratoglou opened this issue Nov 21, 2023 · 1 comment
Open

Question: how to record Appmap with Nextjs #249

amouratoglou opened this issue Nov 21, 2023 · 1 comment

Comments

@amouratoglou
Copy link

amouratoglou commented Nov 21, 2023

hey! first of all, thank you for creating such an amazing tool. I was able to map our express apps without issues.
I'm facing some difficulties to start recording a Nextjs app. Nextjs apps have a /api/ route where the so called backend for frontend works..

the other routes are for the pages to render. Is there any special workaround to get the API interactions recorded?
I'm was not able to find any docs or references to this, but I saw some posts here in Issues mentioning recording with Nextjs

I'd really appreciate if someone can point me in the right direction.

I've tried to initialize the recording in the ways that work with my next apps, but no luck:

for example

➜ repo git:(master) ✗ npx appmap-agent-js --recorder=process -- npm run dev

➜ repo git:(master) ✗ npx appmap-agent-js --command="npm run dev" --recorder=process

when I attempt to record:
image

thanks!!

A

@kgilpin
Copy link
Contributor

kgilpin commented Dec 28, 2023

Hi, all new work on Node.js is occurring in a new repo - https://github.com/getappmap/appmap-node/

This repo supports requests recording and remote recording, can you try there?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants