Commit Graph

11 Commits

Author SHA1 Message Date
719c7b6f87 Pass parameters to Swell fetch function 2022-09-18 21:48:41 +02:00
e01ba0d6c6 Create reusable Swell fetch functions 2022-09-18 19:57:19 +02:00
3ca8ed0d06 Use base64 library to encode basic auth 🤦
Buffer being not enabled on Vercel Edge Functions
2022-09-18 18:55:28 +02:00
c7b67b909c Use Swell REST API for fetching products 2022-09-18 17:10:06 +02:00
2393d28597 Fix Shop fetching on server side? 2022-09-18 12:52:48 +02:00
b66db25942 🚧 Switch to swell-js to handle Shop cart
swell-node was relying too much on Node packages like crypto or events to be used with Cloudflare Pages or Vercel Edge Functions
2022-09-18 12:14:43 +02:00
0e6aaaa4e2 Make GraphQL queries more compact 2022-08-16 21:17:14 +02:00
52e0407700 Why an error again…? 2022-08-16 20:48:01 +02:00
42e9029da8 Switch back to VITE env variable for API token
Can't find a way around… but this works!
2022-08-16 20:40:57 +02:00
93a50770d0 Move API fetch data to different file
Sharing multiple exportable functions in one file impacts the use of private env variables 🤷
2022-08-16 20:00:52 +02:00
5e5c08ddd1 🚧 Migrate to new SvelteKit routing system
A bit annoying but for the best I guess?
2022-08-16 15:54:15 +02:00