Pause
02/27/2023, 7:35 PMPause
02/27/2023, 7:36 PM.d.ts
file presumably because it can never work so it's pointless.kian
02/27/2023, 7:36 PMcreateObjectURL
was doing to be honestkian
02/27/2023, 7:36 PMPause
02/27/2023, 7:37 PMdave
02/28/2023, 6:05 PMdave
02/28/2023, 6:06 PMPause
02/28/2023, 6:23 PMhanpolo
02/28/2023, 8:08 PMnpx wrangler pages dev -- npm start
This then starts my application on localhost: where the port is determined by the npm start commands. Typically something like 33xx .. e.g. 3389 right now.
But functions are accessible on localhost:8788 and it so happens that I have a call to one of these functions when the application is initializing. This call returns 404 not found, since my application is assuming the root is where its called from --i.e. localhost:33xx. If I call a function later on, the very same call succeeds, presumably because it is being proxied. Now if I force the early call to use localhost:8788, I get CORS policy error which prevents the function from running.
The solution: after everything has initialized, I manually enter localhost:8788 in the address bar. Now everything works fine.
Wouldn't it be better if the whole thing automatically started on localhost:8788. Though I wonder if then my changes will cause a restart on this address.Skye
02/28/2023, 8:11 PMhanpolo
02/28/2023, 8:11 PMSkye
02/28/2023, 8:12 PMhanpolo
02/28/2023, 8:12 PMhanpolo
02/28/2023, 8:13 PMhanpolo
02/28/2023, 8:13 PMhanpolo
02/28/2023, 8:14 PMstencil build --dev --watch --serve
Skye
02/28/2023, 8:17 PMhanpolo
02/28/2023, 8:23 PMAsa Masterson
03/03/2023, 1:19 PMTKR👑
03/05/2023, 3:09 AM/functions
folder be in my root dir for the build? or my actual top level of a repo? Have tried both and neither seem to be working?
Also are files with a -
supported i.e /functions/early-access.js
to domain.com/early-access
?
Trying to get a simple hello world function working and just getting a 404 with nothing else 🥲Ariful
03/05/2023, 8:39 AMHardAtWork
03/05/2023, 8:40 AMAriful
03/05/2023, 8:41 AMHardAtWork
03/05/2023, 8:41 AMAriful
03/05/2023, 8:42 AMHardAtWork
03/05/2023, 8:42 AMjs
const { email, name } = await req.json();
Ariful
03/05/2023, 8:43 AMAriful
03/05/2023, 9:40 AMsdev
03/05/2023, 12:56 PMAriful
03/05/2023, 12:59 PM