yes, that one returns url as expected (string value)
yes, that one returns url as expected (string value)

dist folderreadableStream from the uploaded File and passes it along, so you're not buffering the file contents.--experimental-local maybe your original code will stop working locallygetUsesMiddleware with a URL to decide if I need to do extra stuff with the request.wrangler pages published, the resulting deploy would never return any logs. Half the time it did. So i would connect, do some requests, and if no logs came through, I’d publish again and try again. Over about 10 deploys, it worked half the time.context.env? I'm thinking of instantiating a faunadb client in a module then importing that, but then I'd have to dependency inject the secrets from where-ever I'm calling it from and I'm not sure about that.context.env is that the practice?context.env and passing it around. If it's something you plan to re-use in many places, you may want to extract it to your own Pages Plugin: https://developers.cloudflare.com/pages/platform/functions/plugins/env and data? also I'm concerned about compatibility in the future for example if I set a env.HOUSE for example then cloudflare releases a binding called env.HOUSE, would that be an issue?env.ASSETS is a default binding right? I'm guessing cloudflare doesn't want to pollute it eitherRebuilding...
Compiled Worker successfully.
Would you like to help improve Wrangler by sending usage metrics to Cloudflare? (y/n)
Done in 500ms.
Watching Remix app in development mode...
1 warning(s) when compiling Worker.
Would you like to help improve Wrangler by sending usage metrics to Cloudflare? (y/n)
"scripts": {
"build": "npm run build:css && remix build",
"build:css": "tailwindcss -m -i ./styles/app.css -o app/styles/app.css",
"dev:remix": "remix watch",
"dev:wrangler": "cross-env NODE_ENV=development wrangler pages dev ./public --send_metrics=false",
"dev:css": "tailwindcss -w -i ./styles/app.css -o app/styles/app.css",
"dev": "npm run clean && remix build && run-p dev:*",
"start": "cross-env NODE_ENV=production npm run dev:wrangler",
"clean": "del-cli functions && del-cli public/build"
},X [ERROR] Unknown argument: send_metricswrangler pages dev need updated to take in the send_metrics flag? const bucketPut = await env.PIC.put(
uuid,
fileUploaded.stream(),
bucketPutOptions
);type UsesMiddlewareProps = {
url: string;
};
// Requests with these strings should not have middleware added to them.
export const undesiredPaths = [
".css",
".ico",
".js",
".png",
".jpeg",
".jpg",
".svg",
".wepb",
"/fonts/"
];
export function getUsesMiddleware({url} : UsesMiddlewareProps): boolean {
return ! undesiredPaths.some((undesiredString) => {
return url.includes(undesiredString);
});
}Rebuilding...
Compiled Worker successfully.
Would you like to help improve Wrangler by sending usage metrics to Cloudflare? (y/n)
Done in 500ms.
Watching Remix app in development mode...
1 warning(s) when compiling Worker.
Would you like to help improve Wrangler by sending usage metrics to Cloudflare? (y/n)
"scripts": {
"build": "npm run build:css && remix build",
"build:css": "tailwindcss -m -i ./styles/app.css -o app/styles/app.css",
"dev:remix": "remix watch",
"dev:wrangler": "cross-env NODE_ENV=development wrangler pages dev ./public --send_metrics=false",
"dev:css": "tailwindcss -w -i ./styles/app.css -o app/styles/app.css",
"dev": "npm run clean && remix build && run-p dev:*",
"start": "cross-env NODE_ENV=production npm run dev:wrangler",
"clean": "del-cli functions && del-cli public/build"
},