My API is currently written in Express JS. Do you have any migration recommendations I should look i
My API is currently written in Express JS. Do you have any migration recommendations I should look into?

while sleep 1 ; do wranger tail ; done and this message breaks things Using fallback value in non-interactive context in some of people's errors here. Hmm, maybe I need to set export CF_PAGES=1?CI=1encodeURI?export CF_PAGES=1 works perfectly though, confirmed!Is it visible content for the user?Yes.
Is it part of a script?Yes.

export default {
async fetch(request, env, ctx) {
const url = new URL(request.url);
if (url.pathname === ENDPOINT) {
handle(request, url);
}
}
}addEventListener("fetch", event => {
const url = new URL(event.request.url);
if (url.pathname === ENDPOINT) {
event.respondWith(handle(event, url));
}
});

while sleep 1 ; do wranger tail ; done✔ Would you like to report this error to Cloudflare? [y/n]Using fallback value in non-interactive contextexport CF_PAGES=1export CF_PAGES=1CI=1encodeURIexport default {
async fetch(request, env, ctx) {
const url = new URL(request.url);
if (url.pathname === ENDPOINT) {
handle(request, url);
}
}
}addEventListener("fetch", event => {
const url = new URL(event.request.url);
if (url.pathname === ENDPOINT) {
event.respondWith(handle(event, url));
}
});const destination_url_without_query_encoded = encodeURI(new URL(...untrusted...).href);
const encoded_url = encodeURI(new URL(...untrusted...).href);
const html_body = `<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="0;url=${encoded_url}">
<title>Redirecting...</title>
<meta http-equiv="Cache-Control" content="private, no-transform, no-cache, no-store, max-age=0, s-maxage=0">
<link rel="canonical" href="${destination_url_without_query_encoded}" />
<meta name="robots" content="noindex, nofollow, notranslate, noarchive, noimageindex, nosnippet, nositelinkssearchbox, nocache, nopagereadaloud">
</head>
<body>
<h1>Redirecting...</h1>
<p>If you are not redirected automatically, please <a href="${encoded_url}">click here</a>.</p>
<script>
window.location.replace = "${encoded_url}";
</script>
</body>
</html>
`;curl "https://removed"