This e-commerce website is made with Remix, powered by Woocommerce.
Remember to:
- Set WordPress permalinks to something
Post name
at: Settings > Permalinks. - Generate REST API keys: WooCommerce > Settings > Advanced > REST API.
- Create
WooCommerceProductSchema
zod schema to perform validation of the products coming from WooCommerce API and filter out incomplete products. Remember to check:- At least one image in the images property
- To fully develop locally I'm using LocalWP to get the HTTPS thing working you need to self-sign the SSL certificate. So far so good, but this causes an issue with the Fetch API (used by cloudflare pages) that throws when the server to be connected to is not really secure (i.e. SSL is self-signed). A workaround is to set the env var
NODE_TLS_REJECT_UNAUTHORIZED
to 0