Skip to content

Deploying to Cloudflare Workers or Pages #748

Closed Answered by guillaumelachaud
almaraz333 asked this question in Help
Discussion options

You must be logged in to vote

I have published the template here. Do not hesitate to ask questions if it doesn't work as expected.

They key things that were missing from the official Shopify Documentation:

  • When you want to deploy on CF Pages (or anywhere that's not Oxygen), you need to remove all Oxygen dependencies and uses the proper adapter. That means that all context based functions must be replaced to come from the proper adapter. For instance, you should remove:
import {LinksFunction, LoaderArgs, json} from '@shopify/remix-oxygen';

and replace it with

import type {LinksFunction, LoaderArgs, json} from '@remix-run/cloudflare';

The documentation is misleading on that topic. The last point of the tutorial tell…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@almaraz333
Comment options

@guillaumelachaud
Comment options

@brambrink
Comment options

@guillaumelachaud
Comment options

Answer selected by almaraz333
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
5 participants