Erwin
02/13/2022, 3:55 AMErwin
02/13/2022, 3:57 AMCоlе
02/13/2022, 4:25 AMErwin
02/13/2022, 4:38 AMhttp
to https
? The former is browser behaviour and the later is probably a setting somewhere? But in any way exactly what you want.Cоlе
02/13/2022, 4:41 AMCоlе
02/13/2022, 4:41 AMCоlе
02/13/2022, 4:42 AMhttps://tenor.com/RCPz.gif▾
Erwin
02/13/2022, 4:44 AMNote: In HTTP/1.0, the status codes 301 (Moved Permanently) and
302 (Found) were defined for the first type of redirect
([RFC1945], Section 9.3). Early user agents split on whether the
method applied to the redirect target would be the same as the
original request or would be rewritten as GET. Although HTTP
originally defined the former semantics for 301 and 302 (to match
its original implementation at CERN), and defined 303 (See Other)
to match the latter semantics, prevailing practice gradually
converged on the latter semantics for 301 and 302 as well. The
first revision of HTTP/1.1 added 307 (Temporary Redirect) to
indicate the former semantics without being impacted by divergent
practice. Over 10 years later, most user agents still do method
rewriting for 301 and 302; therefore, this specification makes
that behavior conformant when the original request is POST.
https://datatracker.ietf.org/doc/html/rfc7231#section-6.4Erwin
02/13/2022, 4:53 AMsandles
02/13/2022, 2:55 PM/functions
directory and get a hello world function to run, but how can I import packages if I don't have a package.json
or anything in this flutter project? Do I just create one and have the JS stuff live next to the flutter stuff, unaware of each other?sandles
02/13/2022, 3:21 PM✘ [ERROR] Could not resolve "@tsndr/cloudflare-worker-jwt"
How, exactly am I supposed to use NPM packages in functions?William | Chaos Management
02/13/2022, 7:56 PMWilliam | Chaos Management
02/13/2022, 8:08 PMLarry
02/13/2022, 8:12 PMstewfish
02/13/2022, 10:57 PMstewfish
02/13/2022, 11:02 PMadapter-cloudflare
Isaac McFadyen | YYZ01
02/13/2022, 11:02 PMIsaac McFadyen | YYZ01
02/13/2022, 11:03 PMadapter-cloudflare
basically packages up your SvelteKit project and puts it into a Worker (a Pages Function, which is similar to a worker).Isaac McFadyen | YYZ01
02/13/2022, 11:03 PMadapter-cloudflare
everything is dynamic. An endpoint is actually served by the main Worker automatically, there's no differentiation.Isaac McFadyen | YYZ01
02/13/2022, 11:05 PMadapter-cloudflare
will be rendered on the main worker. That includes endpoints. With SvelteKit using the adapter-cloudflare
your only option is endpoints, you can't add an extra Function. But endpoints are all you need.stewfish
02/13/2022, 11:06 PMadapter-static
is that when the function comes back into play?Isaac McFadyen | YYZ01
02/13/2022, 11:08 PMadapter-cloudflare
right now on my production site and it's wonderful.bryan.
02/15/2022, 6:39 PMIshan
02/17/2022, 1:52 PMIsaac McFadyen | YYZ01
02/17/2022, 1:53 PMErwin
02/17/2022, 1:57 PMIsaac McFadyen | YYZ01
02/17/2022, 1:57 PMErwin
02/17/2022, 2:01 PMIsaac McFadyen | YYZ01
02/17/2022, 2:01 PM